<commit_before>import uuid

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

# parse requirements
reqs = parse_requirements("requirements/common.txt", session=uuid.uuid1())

setup(
    name="cmsplugin-bootstrap-carousel",
    packages=find_packages(),
    version="0.2.1",
    description="Bootstrap carousel plugin for django-cms",
    long_description=open('README.rst').read(),
    author="Nimbis Services, Inc.",
    author_email="devops@nimbisservices.com",
    url='https://github.com/nimbis/cmsplugin-bootstrap-carousel/',
    license="BSD",
    keywords=["django", "django-cms", "bootstrap", "carousel"],
    classifiers=[
        "Programming Language :: Python",
        "Environment :: Web Environment",
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Framework :: Django"
        ],
    zip_safe=False,
    include_package_data=True,
    install_requires=[str(x).split(' ')[0] for x in reqs],
    )
<commit_msg>Bumping version for release.<commit_after>import uuid

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

# parse requirements
reqs = parse_requirements("requirements/common.txt", session=uuid.uuid1())

setup(
    name="cmsplugin-bootstrap-carousel",
    packages=find_packages(),
    version="0.2.2",
    description="Bootstrap carousel plugin for django-cms",
    long_description=open('README.rst').read(),
    author="Nimbis Services, Inc.",
    author_email="devops@nimbisservices.com",
    url='https://github.com/nimbis/cmsplugin-bootstrap-carousel/',
    license="BSD",
    keywords=["django", "django-cms", "bootstrap", "carousel"],
    classifiers=[
        "Programming Language :: Python",
        "Environment :: Web Environment",
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Framework :: Django"
        ],
    zip_safe=False,
    include_package_data=True,
    install_requires=[str(x).split(' ')[0] for x in reqs],
    )
<|endoftext|>


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

from distutils.core import setup

setup(
    name='chakert',
    version='0.1',
    packages=['chakert',
              'chakert.langs'],
    requires=[
        'lxml',
    ],
    author='Harut Dagesian',
    author_email='yes@harutune.name',
    description='Typographer for lxml and plain text. '
                'Supports English and Russian languages.',
    #long_description=open('README').read(),
    url='http://github.com/Harut/chakert/',
    license='MIT',
    keywords='html lxml typography',
)
<commit_msg>0.1.1<commit_after># -*- coding: utf-8 -*-

from distutils.core import setup

setup(
    name='chakert',
    version='0.1.1',
    packages=['chakert',
              'chakert.langs'],
    requires=[
        'lxml',
    ],
    author='Harut Dagesian',
    author_email='yes@harutune.name',
    description='Typographer for lxml and plain text. '
                'Supports English and Russian languages.',
    #long_description=open('README').read(),
    url='http://github.com/Harut/chakert/',
    license='MIT',
    keywords='html lxml typography',
)
<|endoftext|>


<commit_before>from distutils.core import setup

import setuptools

setup(
    name = "vsm",
    version = "0.1",
    description = ('Vector Space Semantic Modeling Framework '\
                   'for the Indiana Philosophy Ontology Project'),
    author = "The Indiana Philosophy Ontology (InPhO) Project",
    author_email = "inpho@indiana.edu",
    url = "http://inpho.cogs.indiana.edu/",
    download_url = "http://www.github.com/inpho/vsm",
    keywords = [],
    classifiers = [
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        # "License :: OSI Approved :: MIT License", TBD
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Artificial Intelligence"
        "Topic :: Text Processing :: Linguistic",
        ],
    install_requires=[
        "numpy>=1.6.1",
        "scipy>=10.1"
        "nltk>=2.0.0"
    ],
    packages=['vsm',
              'vsm.corpus',
              'vsm.model',
              'vsm.viewer'],
)
<commit_msg>bug fix<commit_after>from distutils.core import setup

import setuptools

setup(
    name = "vsm",
    version = "0.1",
    description = ('Vector Space Semantic Modeling Framework '\
                   'for the Indiana Philosophy Ontology Project'),
    author = "The Indiana Philosophy Ontology (InPhO) Project",
    author_email = "inpho@indiana.edu",
    url = "http://inpho.cogs.indiana.edu/",
    download_url = "http://www.github.com/inpho/vsm",
    keywords = [],
    classifiers = [
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        # "License :: OSI Approved :: MIT License", TBD
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Artificial Intelligence"
        "Topic :: Text Processing :: Linguistic",
        ],
    install_requires=[
        "numpy>=1.6.1",
        "scipy>=10.1",
        "nltk>=2.0.0"
    ],
    packages=['vsm',
              'vsm.corpus',
              'vsm.model',
              'vsm.viewer'],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""IbPy - Interactive Brokers Python API

IbPy is a third-party implementation of the API used for accessing the
Interactive Brokers on-line trading system.  IbPy implements functionality
that the Python programmer can use to connect to IB, request stock ticker
data, submit orders for stocks and options, and more.
"""
from distutils.core import setup

classifiers = """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Topic :: Office/Business :: Financial
Topic :: Office/Business :: Financial :: Investment
Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules
"""

doclines = __doc__.split('\n')

setup(
    name = 'IbPy',
    version = "0", # make value
    description = doclines[0],
    author = 'Troy Melhase',
    author_email = 'troy@gci.net',
    url = 'http://code.google.com/p/ibpy/',
    license = 'BSD License',
    packages = ['ib', 'ib/lib', 'ib/ext', 'ib/opt', 'ib/sym'],
    classifiers = filter(None, classifiers.split('\n')),
    long_description = '\n'.join(doclines[2:]),
    platforms = ['any'],
    download_url = 'http://ibpy.googlecode.com/files/:release_file:',
)
<commit_msg>Add automatic 2to3 execution for Python 3 users<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""IbPy - Interactive Brokers Python API

IbPy is a third-party implementation of the API used for accessing the
Interactive Brokers on-line trading system.  IbPy implements functionality
that the Python programmer can use to connect to IB, request stock ticker
data, submit orders for stocks and options, and more.
"""
from distutils.core import setup

classifiers = """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Topic :: Office/Business :: Financial
Topic :: Office/Business :: Financial :: Investment
Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules
"""

doclines = __doc__.split('\n')

try:  # Python 3
    from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:  # Python 2
    from distutils.command.build_py import build_py

setup(cmdclass = {'build_py': build_py},
    name = 'IbPy',
    version = "0", # make value
    description = doclines[0],
    author = 'Troy Melhase',
    author_email = 'troy@gci.net',
    url = 'http://code.google.com/p/ibpy/',
    license = 'BSD License',
    packages = ['ib', 'ib/lib', 'ib/ext', 'ib/opt', 'ib/sym'],
    classifiers = filter(None, classifiers.split('\n')),
    long_description = '\n'.join(doclines[2:]),
    platforms = ['any'],
    download_url = 'http://ibpy.googlecode.com/files/:release_file:',
)
<|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

# 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

# Package metadata.

name = "google-cloud-asset"
description = "Cloud Asset API API client library"
version = "2.2.0"
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
    "google-api-core[grpc] >= 1.22.2, < 2.0.0dev",
    "grpc-google-iam-v1 >= 0.12.3, < 0.13dev",
    "google-cloud-access-context-manager >= 0.1.2, < 0.2.0dev",
    "google-cloud-org-policy>=0.1.2, <0.2.1",
    "google-cloud-os-config >= 1.0.0, <2.0.0dev",
    "proto-plus >= 1.10.0",
]

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

# Setup boilerplate below this line.

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()

# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
    package
    for package in setuptools.PEP420PackageFinder.find()
    if package.startswith("google")
]

# Determine which namespaces are needed.
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-asset",
    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_requires=extras,
    python_requires=">=3.6",
    scripts=[
        "scripts/fixup_asset_v1_keywords.py",
        "scripts/fixup_asset_v1beta1_keywords.py",
        "scripts/fixup_asset_v1p1beta1_keywords.py",
        "scripts/fixup_asset_v1p2beta1_keywords.py",
        "scripts/fixup_asset_v1p4beta1_keywords.py",
        "scripts/fixup_asset_v1p5beta1_keywords.py",
    ],
    include_package_data=True,
    zip_safe=False,
)
<commit_msg>chore(revert): revert preventing normalization (#178)<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

# Package metadata.

name = "google-cloud-asset"
description = "Cloud Asset API API client library"
version = "2.2.0"
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
    "google-api-core[grpc] >= 1.22.2, < 2.0.0dev",
    "grpc-google-iam-v1 >= 0.12.3, < 0.13dev",
    "google-cloud-access-context-manager >= 0.1.2, < 0.2.0dev",
    "google-cloud-org-policy>=0.1.2, <0.2.1",
    "google-cloud-os-config >= 1.0.0, <2.0.0dev",
    "proto-plus >= 1.10.0",
]

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

# Setup boilerplate below this line.

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()

# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
    package
    for package in setuptools.PEP420PackageFinder.find()
    if package.startswith("google")
]

# Determine which namespaces are needed.
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-asset",
    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_requires=extras,
    python_requires=">=3.6",
    scripts=[
        "scripts/fixup_asset_v1_keywords.py",
        "scripts/fixup_asset_v1beta1_keywords.py",
        "scripts/fixup_asset_v1p1beta1_keywords.py",
        "scripts/fixup_asset_v1p2beta1_keywords.py",
        "scripts/fixup_asset_v1p4beta1_keywords.py",
        "scripts/fixup_asset_v1p5beta1_keywords.py",
    ],
    include_package_data=True,
    zip_safe=False,
)
<|endoftext|>


<commit_before>import sys

from setuptools import setup, find_packages

if 'develop' not in sys.argv:
    raise NotImplementedError("since Pylearn2 is under rapid, active "
                              "development, setup.py install is intentionally "
                              "disabled to prevent other problems. Run "
                              "`python setup.py develop` to install Pylearn2.")
    # Detailed notes:
    # This modification of setup.py is designed to prevent two problems
    # novice users frequently encountered:
    # 1) Novice users frequently used "git clone" to get a copy of Pylearn2,
    # then ran setup.py install, then would use "git pull" to get a bug fix
    # but would forget to run "setup.py install" again.
    # 2) Novice users frequently used "sudo" to make an "installed" copy of
    # Pylearn2, then try to use the tutorials in the "scripts" directory in
    # the "installed" copy. Since the tutorials are then in a directory owned
    # by root and need to create files in the local directory, some users
    # would run the tutorials using "sudo". Besides being dangerous, this
    # created additional problems because "sudo" does not just run the script
    # with root privileges, it actually changes the user to root, and thus
    # pylearn2-related environment variables configured in the user's
    # .bashrc would no longer be available.
    # Installing only in development mode avoids both problems because there
    # is now only a single copy of the code and it is stored in a directory
    # editable by the user.
    # Note that none of the Pylearn2 installation documentation recommends
    # using setup.py install or pip. Most of the Pylearn2 developers just
    # obtain Pylearn2 via git clone and then add it to their PYTHONPATH
    # manually.

setup(
    name='pylearn2',
    version='0.1dev',
    packages=find_packages(),
    description='A machine learning library build on top of Theano.',
    license='BSD 3-clause license',
    long_description=open('README.rst').read(),
    install_requires=['numpy>=1.5', 'theano', 'pyyaml', 'argparse'],
    package_data={
        '': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.h'],
    },
)
<commit_msg>Backticks<commit_after>import sys

from setuptools import setup, find_packages

if 'develop' not in sys.argv:
    raise NotImplementedError("since Pylearn2 is under rapid, active "
                              "development, `python setup.py install` is "
                              "intentionally disabled to prevent other "
                              "problems. Run `python setup.py develop` to "
                              "install Pylearn2.")
    # Detailed notes:
    # This modification of setup.py is designed to prevent two problems
    # novice users frequently encountered:
    # 1) Novice users frequently used "git clone" to get a copy of Pylearn2,
    # then ran setup.py install, then would use "git pull" to get a bug fix
    # but would forget to run "setup.py install" again.
    # 2) Novice users frequently used "sudo" to make an "installed" copy of
    # Pylearn2, then try to use the tutorials in the "scripts" directory in
    # the "installed" copy. Since the tutorials are then in a directory owned
    # by root and need to create files in the local directory, some users
    # would run the tutorials using "sudo". Besides being dangerous, this
    # created additional problems because "sudo" does not just run the script
    # with root privileges, it actually changes the user to root, and thus
    # pylearn2-related environment variables configured in the user's
    # .bashrc would no longer be available.
    # Installing only in development mode avoids both problems because there
    # is now only a single copy of the code and it is stored in a directory
    # editable by the user.
    # Note that none of the Pylearn2 installation documentation recommends
    # using setup.py install or pip. Most of the Pylearn2 developers just
    # obtain Pylearn2 via git clone and then add it to their PYTHONPATH
    # manually.

setup(
    name='pylearn2',
    version='0.1dev',
    packages=find_packages(),
    description='A machine learning library build on top of Theano.',
    license='BSD 3-clause license',
    long_description=open('README.rst').read(),
    install_requires=['numpy>=1.5', 'theano', 'pyyaml', 'argparse'],
    package_data={
        '': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.h'],
    },
)
<|endoftext|>


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

import sys
import os
from os import path
from os.path import splitext

import shutil
from setuptools import Extension
from distutils import sysconfig
import platform

# PyPy --- NB! PyPy doesn't really work, it segfaults all over the place. But,
# this is necessary to get it compile.
# We have to resort to monkey-patching to set the compiler, because pypy broke
# all the everything.

pre_patch_customize_compiler = sysconfig.customize_compiler
def my_customize_compiler(compiler):
    pre_patch_customize_compiler(compiler)
    compiler.compiler_cxx = ['c++']

if platform.python_implementation() == 'PyPy':
    sysconfig.customize_compiler = my_customize_compiler

#def install_headers():
#    dest_dir = path.join(sys.prefix, 'include', 'murmurhash')
#    if not path.exists(dest_dir):
#        shutil.copytree('murmurhash/headers/murmurhash', dest_dir)
#
#    dest_dir = path.join(sys.prefix, 'include', 'numpy')

includes = ['.', path.join(sys.prefix, 'include')]

try:
    import numpy
    numpy_headers = path.join(numpy.get_include(), 'numpy')
    shutil.copytree(numpy_headers, path.join(sys.prefix, 'include', 'numpy'))
except ImportError:
    pass
except OSError:
    pass

def clean(ext):
    for src in ext.sources:
        if src.endswith('.c') or src.endswith('cpp'):
            so = src.rsplit('.', 1)[0] + '.so'
            html = src.rsplit('.', 1)[0] + '.html'
            if os.path.exists(so):
                os.unlink(so)
            if os.path.exists(html):
                os.unlink(html)

def name_to_path(mod_name, ext):
    return '%s.%s' % (mod_name.replace('.', '/'), ext)

def c_ext(mod_name, language, includes, compile_args, link_args):
    mod_path = name_to_path(mod_name, language)
    return Extension(mod_name, [mod_path], include_dirs=includes,
                     extra_compile_args=compile_args, extra_link_args=compile_args)

def cython_exts(mod_names, language, includes, compile_args, link_args):
    import Cython.Distutils
    import Cython.Build
    if language == 'cpp':
        language = 'c++'
    exts = []
    for mod_name in mod_names:
        mod_path = mod_name.replace('.', '/') + '.pyx'
        e = Extension(mod_name, [mod_path], language=language, include_dirs=includes,
                      extra_compile_args=compile_args, extra_link_args=link_args)
        exts.append(e)
    return Cython.Build.cythonize(exts)

def run_setup(exts):
    setup(
        name='spacy',
        packages=['spacy', 'spacy.en', 'spacy.syntax'],
        description="Industrial-strength NLP",
        author='Matthew Honnibal',
        author_email='honnibal@gmail.com',
        version='0.66',
        url="http://honnibal.github.io/spaCy/",
        package_data={"spacy": ["*.pxd"],
                      "spacy.en": ["*.pxd", "data/pos/*",
                                   "data/wordnet/*", "data/tokenizer/*",
                                   "data/vocab/lexemes.bin",
                                   "data/vocab/strings.txt"],
                      "spacy.syntax": ["*.pxd"]},
        ext_modules=exts,
        license="Dual: Commercial or AGPL",
        install_requires=['numpy', 'murmurhash', 'cymem >= 1.11', 'preshed', 'thinc',
                          "unidecode", 'wget', 'plac', 'six'],
        setup_requires=["headers_workaround"],
    )

    import headers_workaround

    headers_workaround.fix_venv_pypy_include()
    headers_workaround.install_headers('murmurhash')
    headers_workaround.install_headers('numpy')

def main(modules, is_pypy):
    language = "cpp"
    includes = ['.', path.join(sys.prefix, 'include')]
    compile_args = ['-O3', '-Wno-strict-prototypes']
    link_args = []
    if sys.prefix == 'darwin':
        compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++'])
        link_args.append('-lc++')
    if use_cython:
        exts = cython_exts(modules, language, includes, compile_args, link_args)
    else:
        exts = [c_ext(mn, language, includes, compile_args, link_args)
                      for mn in modules]
    run_setup(exts)

MOD_NAMES = ['spacy.parts_of_speech', 'spacy.strings',
             'spacy.lexeme', 'spacy.vocab', 'spacy.tokens', 'spacy.morphology',
             'spacy._ml', 'spacy.tokenizer', 'spacy.en.attrs',
             'spacy.en.pos', 'spacy.syntax.parser', 'spacy.syntax._state',
             'spacy.syntax.arc_eager', 'spacy.syntax._parse_features',
             'spacy.orth']

if __name__ == '__main__':
    use_cython = sys.argv[1] == 'build_ext'
    main(MOD_NAMES, use_cython)
<commit_msg>* Inc version<commit_after>#!/usr/bin/env python
import subprocess
from setuptools import setup
from glob import glob

import sys
import os
from os import path
from os.path import splitext

import shutil
from setuptools import Extension
from distutils import sysconfig
import platform

# PyPy --- NB! PyPy doesn't really work, it segfaults all over the place. But,
# this is necessary to get it compile.
# We have to resort to monkey-patching to set the compiler, because pypy broke
# all the everything.

pre_patch_customize_compiler = sysconfig.customize_compiler
def my_customize_compiler(compiler):
    pre_patch_customize_compiler(compiler)
    compiler.compiler_cxx = ['c++']

if platform.python_implementation() == 'PyPy':
    sysconfig.customize_compiler = my_customize_compiler

#def install_headers():
#    dest_dir = path.join(sys.prefix, 'include', 'murmurhash')
#    if not path.exists(dest_dir):
#        shutil.copytree('murmurhash/headers/murmurhash', dest_dir)
#
#    dest_dir = path.join(sys.prefix, 'include', 'numpy')

includes = ['.', path.join(sys.prefix, 'include')]

try:
    import numpy
    numpy_headers = path.join(numpy.get_include(), 'numpy')
    shutil.copytree(numpy_headers, path.join(sys.prefix, 'include', 'numpy'))
except ImportError:
    pass
except OSError:
    pass

def clean(ext):
    for src in ext.sources:
        if src.endswith('.c') or src.endswith('cpp'):
            so = src.rsplit('.', 1)[0] + '.so'
            html = src.rsplit('.', 1)[0] + '.html'
            if os.path.exists(so):
                os.unlink(so)
            if os.path.exists(html):
                os.unlink(html)

def name_to_path(mod_name, ext):
    return '%s.%s' % (mod_name.replace('.', '/'), ext)

def c_ext(mod_name, language, includes, compile_args, link_args):
    mod_path = name_to_path(mod_name, language)
    return Extension(mod_name, [mod_path], include_dirs=includes,
                     extra_compile_args=compile_args, extra_link_args=compile_args)

def cython_exts(mod_names, language, includes, compile_args, link_args):
    import Cython.Distutils
    import Cython.Build
    if language == 'cpp':
        language = 'c++'
    exts = []
    for mod_name in mod_names:
        mod_path = mod_name.replace('.', '/') + '.pyx'
        e = Extension(mod_name, [mod_path], language=language, include_dirs=includes,
                      extra_compile_args=compile_args, extra_link_args=link_args)
        exts.append(e)
    return Cython.Build.cythonize(exts)

def run_setup(exts):
    setup(
        name='spacy',
        packages=['spacy', 'spacy.en', 'spacy.syntax'],
        description="Industrial-strength NLP",
        author='Matthew Honnibal',
        author_email='honnibal@gmail.com',
        version='0.67',
        url="http://honnibal.github.io/spaCy/",
        package_data={"spacy": ["*.pxd"],
                      "spacy.en": ["*.pxd", "data/pos/*",
                                   "data/wordnet/*", "data/tokenizer/*",
                                   "data/vocab/lexemes.bin",
                                   "data/vocab/strings.txt"],
                      "spacy.syntax": ["*.pxd"]},
        ext_modules=exts,
        license="Dual: Commercial or AGPL",
        install_requires=['numpy', 'murmurhash', 'cymem >= 1.11', 'preshed', 'thinc',
                          "unidecode", 'wget', 'plac', 'six'],
        setup_requires=["headers_workaround"],
    )

    import headers_workaround

    headers_workaround.fix_venv_pypy_include()
    headers_workaround.install_headers('murmurhash')
    headers_workaround.install_headers('numpy')

def main(modules, is_pypy):
    language = "cpp"
    includes = ['.', path.join(sys.prefix, 'include')]
    compile_args = ['-O3', '-Wno-strict-prototypes']
    link_args = []
    if sys.prefix == 'darwin':
        compile_args.append(['-mmacosx-version-min=10.8', '-stdlib=libc++'])
        link_args.append('-lc++')
    if use_cython:
        exts = cython_exts(modules, language, includes, compile_args, link_args)
    else:
        exts = [c_ext(mn, language, includes, compile_args, link_args)
                      for mn in modules]
    run_setup(exts)

MOD_NAMES = ['spacy.parts_of_speech', 'spacy.strings',
             'spacy.lexeme', 'spacy.vocab', 'spacy.tokens', 'spacy.morphology',
             'spacy._ml', 'spacy.tokenizer', 'spacy.en.attrs',
             'spacy.en.pos', 'spacy.syntax.parser', 'spacy.syntax._state',
             'spacy.syntax.arc_eager', 'spacy.syntax._parse_features',
             'spacy.orth']

if __name__ == '__main__':
    use_cython = sys.argv[1] == 'build_ext'
    main(MOD_NAMES, use_cython)
<|endoftext|>


<commit_before>
from distutils.core import setup
setup(
    name = "colino",
    packages = ["colino"],
    version = "0.0.1",
    description = "Event correlator",
    author = "Gabriele Mambrini",
    author_email = "g.mambrini@gmail.com"
    url = "http://github.com/gmambro/colino",
#    download_url = "",
    keywords = ["event" ],
    classifiers = [
        "Programming Language :: Python",

	# 3 - Alpha
	# 4 - Beta
	# 5 - Production/Stable
        "Development Status :: 3 - Alpha",

        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",

	'Programming Language :: Python :: 2',
	'Programming Language :: Python :: 2.6',
	'Programming Language :: Python :: 2.7',

        ],
    long_description = """\
Colino simple event correlator
"""
)
<commit_msg>updated setup.py<commit_after>from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))

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

setup(
    name = "colino",
    version = "0.0.1",

    description = "Event correlator",
    long_description = long_description,

    author = "Gabriele Mambrini",
    author_email = "g.mambrini@gmail.com",

    url = "http://github.com/gmambro/colino",
    # download_url = "",

    classifiers = [
        "Programming Language :: Python",

	# 3 - Alpha
	# 4 - Beta
	# 5 - Production/Stable
        "Development Status :: 3 - Alpha",

        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",

	'Programming Language :: Python :: 2',
	'Programming Language :: Python :: 2.6',
	'Programming Language :: Python :: 2.7',

        ],
    license = 'Apache',

    keywords = ["event" ],

    packages=find_packages(exclude=['contrib', 'docs', 'tests*']),

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


<commit_before>from setuptools import setup

setup(
    name="Flask-Analytics",
    version="0.5.0",
    author="Mihir Singh (@citruspi)",
    author_email="hello@mihirsingh.com",
    url='https://github.com/citruspi/Flask-Analytics',
    packages=['flask_analytics', 'flask_analytics.providers'],
    zip_safe=False,
    include_package_data=True,
    platforms='any',
    install_requires=[
        'Flask',
    ],
    classifiers=[
        'License :: Public Domain',
        'Development Status :: 5 - Production/Stable',
        'Environment :: Plugins',
        'Framework :: Flask',
        'Intended Audience :: Developers',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Unix',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet'
    ]
)
<commit_msg>Bumped the version to 0.5.1<commit_after>from setuptools import setup

setup(
    name="Flask-Analytics",
    version="0.5.1",
    author="Mihir Singh (@citruspi)",
    author_email="hello@mihirsingh.com",
    url='https://github.com/citruspi/Flask-Analytics',
    packages=['flask_analytics', 'flask_analytics.providers'],
    zip_safe=False,
    include_package_data=True,
    platforms='any',
    install_requires=[
        'Flask',
    ],
    classifiers=[
        'License :: Public Domain',
        'Development Status :: 5 - Production/Stable',
        'Environment :: Plugins',
        'Framework :: Flask',
        'Intended Audience :: Developers',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Unix',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet'
    ]
)
<|endoftext|>


<commit_before>
import sys, os, hashlib, urllib2, subprocess, shutil
from distutils.core import setup, Command

import versioneer
versioneer.versionfile_source = "petmail/_version.py"
versioneer.versionfile_build = "petmail/_version.py"
versioneer.tag_prefix = "v"
versioneer.parentdir_prefix = "petmail-"

commands = versioneer.get_cmdclass()

def run_command(args, cwd=None, verbose=False):
    try:
        # remember shell=False, so use e.g. git.cmd on windows, not just git
        p = subprocess.Popen(args, cwd=cwd)
    except EnvironmentError, e:
        if verbose:
            print "unable to run %s" % args[0]
            print e
        return False
    p.communicate()
    if p.returncode != 0:
        if verbose:
            print "unable to run %s (error)" % args[0]
        return False
    return True

def parse_deps_txt():
    deps = []
    for lineno0,line in enumerate(open("alldeps.txt", "r").readlines()):
        line = line.strip()
        if not line or line.startswith("#"):
            continue
        name, hash, url = line.split()
        filename = os.path.basename(url)
        depfilename = os.path.join("support", "deps", filename)
        deps.append( (name, hash, url, filename, depfilename) )
    return deps

def hashfile(fn):
    h = hashlib.sha256()
    f = open(fn, "rb")
    while True:
        data = f.read(16*1024)
        if not data:
            break
        h.update(data)
    f.close()
    return h.hexdigest()

def verify_deps():
    for (lineno0,(name, hash, url, fn, depfn)) in enumerate(parse_deps_txt()):
        if not os.path.exists(depfn):
            print "must fetch", url, depfn
        gothash = hashfile(depfn)
        if gothash != hash:
            print "bad hash for %s (in %s)" % (name, depfn)
            print "got %s but wanted %s" % (gothash, hash)
            print "on alldeps.txt line %d" % (lineno0+1)
            print
            raise ValueError("bad hash on dependency tarball")

class FetchDeps(Command):
    description = "fetch+verify dependencies"
    user_options = []

    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        if not os.path.isdir("support/deps"):
            os.mkdir("support/deps")
        for (name, hash, url, fn, depfn) in parse_deps_txt():
            if not os.path.exists(depfn):
                print "fetching %s to %s" % (url, depfn)
                f = urllib2.urlopen(url)
                outf = open(depfn, "wb")
                while True:
                    data = f.read(16*1024)
                    if not data:
                        break
                    outf.write(data)
                outf.close()
        verify_deps()
        print "All dependencies fetched and verified"
commands["fetch_deps"] = FetchDeps

class BuildDeps(Command):
    description = "build dependencies"
    user_options = []

    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        if os.path.exists("venv"):
            shutil.rmtree("venv") # clobber it
        cmd = [sys.executable, "support/virtualenv.py",
               "--distribute", "--never-download",
               "deps-venv"]
        if not run_command(cmd):
            print "error while creating deps-venv"
            sys.exit(1)
        print "deps-venv created"
        verify_deps()
        for (name, hash, url, fn, depfn) in parse_deps_txt():
            cmd = ["deps-venv/bin/pip", "install", depfn]
            if not run_command(cmd):
                print "error installing %s" % name
                sys.exit(1)
        # Touch zope/__init__.py to allow zope.interface to be imported. This
        # is normally done by a z.i-provided *-nspkg.pth, and works if we run
        # the venv's bin/python, but not when we merely add its directory to
        # sys.path like bin/petmail does.
        pyver = "python"+sys.version[0:3]
        venv_sitedir = os.path.join("deps-venv/lib", pyver, "site-packages")
        open(os.path.join(venv_sitedir, "zope", "__init__.py"),"w").close()
        print "deps installed into deps-venv"
commands["build_deps"] = BuildDeps

setup(name="petmail",
      version=versioneer.get_version(),
      description="Secure messaging and files",
      author="Brian Warner",
      author_email="warner-petmail@lothar.com",
      license="MIT",
      url="https://github.com/warner/petmail",
      packages=["petmail", "petmail.mailbox",
                "petmail.rendezvous", "petmail.scripts", "petmail.test"],
      entry_points={
          'console_scripts': [ 'petmail = petmail.scripts.runner:entry' ],
          },
      cmdclass=commands,
      )
<commit_msg>setup.py: add install_requires, so "pip install -e ." works<commit_after>
import sys, os, hashlib, urllib2, subprocess, shutil
from distutils.core import setup, Command

import versioneer
versioneer.versionfile_source = "petmail/_version.py"
versioneer.versionfile_build = "petmail/_version.py"
versioneer.tag_prefix = "v"
versioneer.parentdir_prefix = "petmail-"

commands = versioneer.get_cmdclass()

def run_command(args, cwd=None, verbose=False):
    try:
        # remember shell=False, so use e.g. git.cmd on windows, not just git
        p = subprocess.Popen(args, cwd=cwd)
    except EnvironmentError, e:
        if verbose:
            print "unable to run %s" % args[0]
            print e
        return False
    p.communicate()
    if p.returncode != 0:
        if verbose:
            print "unable to run %s (error)" % args[0]
        return False
    return True

def parse_deps_txt():
    deps = []
    for lineno0,line in enumerate(open("alldeps.txt", "r").readlines()):
        line = line.strip()
        if not line or line.startswith("#"):
            continue
        name, hash, url = line.split()
        filename = os.path.basename(url)
        depfilename = os.path.join("support", "deps", filename)
        deps.append( (name, hash, url, filename, depfilename) )
    return deps

def hashfile(fn):
    h = hashlib.sha256()
    f = open(fn, "rb")
    while True:
        data = f.read(16*1024)
        if not data:
            break
        h.update(data)
    f.close()
    return h.hexdigest()

def verify_deps():
    for (lineno0,(name, hash, url, fn, depfn)) in enumerate(parse_deps_txt()):
        if not os.path.exists(depfn):
            print "must fetch", url, depfn
        gothash = hashfile(depfn)
        if gothash != hash:
            print "bad hash for %s (in %s)" % (name, depfn)
            print "got %s but wanted %s" % (gothash, hash)
            print "on alldeps.txt line %d" % (lineno0+1)
            print
            raise ValueError("bad hash on dependency tarball")

class FetchDeps(Command):
    description = "fetch+verify dependencies"
    user_options = []

    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        if not os.path.isdir("support/deps"):
            os.mkdir("support/deps")
        for (name, hash, url, fn, depfn) in parse_deps_txt():
            if not os.path.exists(depfn):
                print "fetching %s to %s" % (url, depfn)
                f = urllib2.urlopen(url)
                outf = open(depfn, "wb")
                while True:
                    data = f.read(16*1024)
                    if not data:
                        break
                    outf.write(data)
                outf.close()
        verify_deps()
        print "All dependencies fetched and verified"
commands["fetch_deps"] = FetchDeps

class BuildDeps(Command):
    description = "build dependencies"
    user_options = []

    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        if os.path.exists("venv"):
            shutil.rmtree("venv") # clobber it
        cmd = [sys.executable, "support/virtualenv.py",
               "--distribute", "--never-download",
               "deps-venv"]
        if not run_command(cmd):
            print "error while creating deps-venv"
            sys.exit(1)
        print "deps-venv created"
        verify_deps()
        for (name, hash, url, fn, depfn) in parse_deps_txt():
            cmd = ["deps-venv/bin/pip", "install", depfn]
            if not run_command(cmd):
                print "error installing %s" % name
                sys.exit(1)
        # Touch zope/__init__.py to allow zope.interface to be imported. This
        # is normally done by a z.i-provided *-nspkg.pth, and works if we run
        # the venv's bin/python, but not when we merely add its directory to
        # sys.path like bin/petmail does.
        pyver = "python"+sys.version[0:3]
        venv_sitedir = os.path.join("deps-venv/lib", pyver, "site-packages")
        open(os.path.join(venv_sitedir, "zope", "__init__.py"),"w").close()
        print "deps installed into deps-venv"
commands["build_deps"] = BuildDeps

setup(name="petmail",
      version=versioneer.get_version(),
      description="Secure messaging and files",
      author="Brian Warner",
      author_email="warner-petmail@lothar.com",
      license="MIT",
      url="https://github.com/warner/petmail",
      packages=["petmail", "petmail.mailbox",
                "petmail.rendezvous", "petmail.scripts", "petmail.test"],
      entry_points={
          'console_scripts': [ 'petmail = petmail.scripts.runner:entry' ],
          },
      install_requires=["Twisted >= 13.1.0", "PyNaCl >= 0.2.3"],
      cmdclass=commands,
      )
<|endoftext|>


<commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        raise SystemExit(pytest.main(self.test_args))

setup(
    name='Flask-Pushrod',
    version='0.1-dev',
    url='http://github.com/dontcare4free/flask-pushrod',
    license='MIT',
    author='Nullable',
    author_email='teo@nullable.se',
    description='An API microframework based on the idea of that the UI is just yet another endpoint',
    packages=['flask_pushrod', 'flask_pushrod.renderers'],
    zip_safe=False,
    platforms='any',
    install_requires=[
        'Werkzeug>=0.7',
        'Flask>=0.9',
    ],
    tests_require=[
        'pytest>=2.2.4',
        'nose>=1.2.1'
    ],
    cmdclass={'test': PyTest},
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<commit_msg>Added testing dependencies on sqlalchemy and flask-sqlalchemy<commit_after>from setuptools import setup
from setuptools.command.test import test as TestCommand

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        raise SystemExit(pytest.main(self.test_args))

setup(
    name='Flask-Pushrod',
    version='0.1-dev',
    url='http://github.com/dontcare4free/flask-pushrod',
    license='MIT',
    author='Nullable',
    author_email='teo@nullable.se',
    description='An API microframework based on the idea of that the UI is just yet another endpoint',
    packages=['flask_pushrod', 'flask_pushrod.renderers'],
    zip_safe=False,
    platforms='any',
    install_requires=[
        'Werkzeug>=0.7',
        'Flask>=0.9',
    ],
    tests_require=[
        'pytest>=2.2.4',
        'nose>=1.2.1',

        # For example
        'sqlalchemy>=0.7.9',
        'flask-sqlalchemy>=0.16',
    ],
    cmdclass={'test': PyTest},
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/python2.5

# Copyright (C) 2007 Google Inc.
#
# 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.

"""
This script can be used to create a source distribution, binary distribution
or Windows executable files. The output is put in dist/

See
http://code.google.com/p/googletransitdatafeed/wiki/BuildingPythonWindowsExecutables
for help on creating Windows executables.
"""

from distutils.core import setup
import glob
import os.path
from transitfeed import __version__ as VERSION

try:
  import py2exe
  has_py2exe = True
except ImportError, e:
  # Won't be able to generate win32 exe
  has_py2exe = False

# py2exe doesn't automatically include pytz dependency because it is optional
options = {'py2exe': {'packages': ['pytz']}}
scripts = ['feedvalidator.py', 'schedule_viewer.py',
           'kmlparser.py', 'kmlwriter.py', 'merge.py']
kwargs = {}

if has_py2exe:
  kwargs['console'] = scripts
  # py2exe seems to ignore package_data and not add marey_graph. This makes it
  # work.
  kwargs['data_files'] = \
      [('schedule_viewer_files',
          glob.glob(os.path.join('gtfsscheduleviewer', 'files', '*')))]

setup(
    version=VERSION,
    name='transitfeed',
    url='http://code.google.com/p/googletransitdatafeed/',
    download_url='http://googletransitdatafeed.googlecode.com/'
        'files/transitfeed-%s.tar.gz' % VERSION,
    maintainer='Tom Brown',
    maintainer_email='tom.brown.code@gmail.com',
    description='Google Transit Feed Specification library and tools',
    long_description='This module provides a library for reading, writing and '
        'validating Google Transit Feed Specification files. It includes some '
        'scripts that validate a feed, display it using the Google Maps API and '
        'the start of a KML importer and exporter.',
    platforms='OS Independent',
    license='Apache License, Version 2.0',
    packages=['gtfsscheduleviewer'],
    py_modules=['transitfeed'],
    # Also need to list package_data contents in MANIFEST.in for it to be
    # included in sdist. See "[Distutils] package_data not used by sdist
    # command" Feb 2, 2007
    package_data={'gtfsscheduleviewer': ['files/*']},
    scripts=scripts,
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Other Audience',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering :: GIS',
        'Topic :: Software Development :: Libraries :: Python Modules'
        ],
    options=options,
    **kwargs
    )
<commit_msg>py2exe fix to work with current pytz and better dist directory name<commit_after>#!/usr/bin/python2.5

# Copyright (C) 2007 Google Inc.
#
# 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.

"""
This script can be used to create a source distribution, binary distribution
or Windows executable files. The output is put in dist/

See
http://code.google.com/p/googletransitdatafeed/wiki/BuildingPythonWindowsExecutables
for help on creating Windows executables.
"""

from distutils.core import setup
import glob
import os.path
from transitfeed import __version__ as VERSION

try:
  import py2exe
  has_py2exe = True
except ImportError, e:
  # Won't be able to generate win32 exe
  has_py2exe = False

# py2exe doesn't automatically include pytz dependency because it is optional
options = {'py2exe': {'packages': ['pytz']}}
scripts = ['feedvalidator.py', 'schedule_viewer.py',
           'kmlparser.py', 'kmlwriter.py', 'merge.py']
kwargs = {}

if has_py2exe:
  kwargs['console'] = scripts
  # py2exe seems to ignore package_data and not add marey_graph. This makes it
  # work.
  kwargs['data_files'] = \
      [('schedule_viewer_files',
          glob.glob(os.path.join('gtfsscheduleviewer', 'files', '*')))]
  options['py2exe'] = {'dist_dir': 'transitfeed-windows-binary-%s' % VERSION}

setup(
    version=VERSION,
    name='transitfeed',
    url='http://code.google.com/p/googletransitdatafeed/',
    download_url='http://googletransitdatafeed.googlecode.com/'
        'files/transitfeed-%s.tar.gz' % VERSION,
    maintainer='Tom Brown',
    maintainer_email='tom.brown.code@gmail.com',
    description='Google Transit Feed Specification library and tools',
    long_description='This module provides a library for reading, writing and '
        'validating Google Transit Feed Specification files. It includes some '
        'scripts that validate a feed, display it using the Google Maps API and '
        'the start of a KML importer and exporter.',
    platforms='OS Independent',
    license='Apache License, Version 2.0',
    packages=['gtfsscheduleviewer'],
    py_modules=['transitfeed'],
    # Also need to list package_data contents in MANIFEST.in for it to be
    # included in sdist. See "[Distutils] package_data not used by sdist
    # command" Feb 2, 2007
    package_data={'gtfsscheduleviewer': ['files/*']},
    scripts=scripts,
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Other Audience',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering :: GIS',
        'Topic :: Software Development :: Libraries :: Python Modules'
        ],
    options=options,
    **kwargs
    )

if has_py2exe:
  # Sometime between pytz-2008a and pytz-2008i common_timezones started to
  # include only names of zones with a corresponding data file in zoneinfo.
  # pytz installs the zoneinfo directory tree in the same directory
  # as the pytz/__init__.py file. These data files are loaded using
  # pkg_resources.resource_stream. py2exe does not copy this to library.zip so
  # resource_stream can't find the files and common_timezones is empty when
  # read in the py2exe executable.
  # This manually copies zoneinfo into the zip. See also
  # http://code.google.com/p/googletransitdatafeed/issues/detail?id=121
  import pytz
  import zipfile
  # Make sure the layout of pytz hasn't changed
  assert (pytz.__file__.endswith('__init__.pyc') or
          pytz.__file__.endswith('__init__.py')), pytz.__file__
  zoneinfo_dir = os.path.join(os.path.dirname(pytz.__file__), 'zoneinfo')
  # '..\\Lib\\pytz\\__init__.py' -> '..\\Lib'
  disk_basedir = os.path.dirname(os.path.dirname(pytz.__file__))
  zipfile_path = os.path.join(options['py2exe']['dist_dir'], 'library.zip')
  z = zipfile.ZipFile(zipfile_path, 'a')
  for absdir, directories, filenames in os.walk(zoneinfo_dir):
    assert absdir.startswith(disk_basedir), (absdir, disk_basedir)
    zip_dir = absdir[len(disk_basedir):]
    for f in filenames:
      z.write(os.path.join(absdir, f), os.path.join(zip_dir, f))
  z.close()
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2017, 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""REANA client"""

from __future__ import absolute_import, print_function

import os
import re

from setuptools import find_packages, setup

readme = open('README.rst').read()
history = open('CHANGES.rst').read()

tests_require = [
    'check-manifest>=0.25',
    'coverage>=4.0',
    'docutils>=0.14',
    'isort>=4.3.4',
    'pydocstyle>=1.0.0',
    'pytest>=3.8.0,<4.0.0',
    'pytest-cache>=1.0',
    'pytest-cov>=1.8.0',
    'pytest-pep8>=1.0.6',
    'pytest-reana>=0.5.0.dev20190116'
]

extras_require = {
    'docs': [
        'Sphinx>=1.5.1',
        'sphinx-rtd-theme>=0.1.9',
        'sphinx-click>=1.0.4',
    ],
    'tests': tests_require,
}

extras_require['all'] = []
for key, reqs in extras_require.items():
    if ':' == key[0]:
        continue
    extras_require['all'].extend(reqs)

setup_requires = [
    'pytest-runner>=2.7',
]

install_requires = [
    'click>=7,<8',
    'cwltool==1.0.20181118133959',
    'pyOpenSSL==17.5.0',  # FIXME remove once yadage-schemas solves deps.
    'reana-commons>=0.5.0.dev20190130,<0.6.0',
    'rfc3987==1.3.7',  # FIXME remove once yadage-schemas solves deps.
    'strict-rfc3339==0.7',  # FIXME remove once yadage-schemas solves deps.
    'tablib>=0.12.1,<0.13',
    'webcolors==1.7',  # FIXME remove once yadage-schemas solves deps.
    'werkzeug==0.14.1',
    'yadage-schemas==0.7.16',
]

packages = find_packages()

# Get the version string. Cannot be done with import!
with open(os.path.join('reana_client', 'version.py'), 'rt') as f:
    version = re.search(
        '__version__\s*=\s*"(?P<version>.*)"\n',
        f.read()
    ).group('version')

setup(
    name='reana-client',
    version=version,
    description=__doc__,
    long_description=readme + '\n\n' + history,
    author='REANA',
    author_email='info@reana.io',
    url='https://github.com/reanahub/reana-client',
    packages=['reana_client', ],
    zip_safe=False,
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'reana-client = reana_client.cli:cli',
            'reana-cwl-runner = reana_client.cli.cwl_runner:cwl_runner'
        ],
    },
    extras_require=extras_require,
    install_requires=install_requires,
    setup_requires=setup_requires,
    tests_require=tests_require,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<commit_msg>installation: upgrade reana-commons<commit_after># -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2017, 2018 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""REANA client"""

from __future__ import absolute_import, print_function

import os
import re

from setuptools import find_packages, setup

readme = open('README.rst').read()
history = open('CHANGES.rst').read()

tests_require = [
    'check-manifest>=0.25',
    'coverage>=4.0',
    'docutils>=0.14',
    'isort>=4.3.4',
    'pydocstyle>=1.0.0',
    'pytest>=3.8.0,<4.0.0',
    'pytest-cache>=1.0',
    'pytest-cov>=1.8.0',
    'pytest-pep8>=1.0.6',
    'pytest-reana>=0.5.0.dev20190116'
]

extras_require = {
    'docs': [
        'Sphinx>=1.5.1',
        'sphinx-rtd-theme>=0.1.9',
        'sphinx-click>=1.0.4',
    ],
    'tests': tests_require,
}

extras_require['all'] = []
for key, reqs in extras_require.items():
    if ':' == key[0]:
        continue
    extras_require['all'].extend(reqs)

setup_requires = [
    'pytest-runner>=2.7',
]

install_requires = [
    'click>=7,<8',
    'cwltool==1.0.20181118133959',
    'pyOpenSSL==17.5.0',  # FIXME remove once yadage-schemas solves deps.
    'reana-commons>=0.5.0.dev20190207,<0.6.0',
    'rfc3987==1.3.7',  # FIXME remove once yadage-schemas solves deps.
    'strict-rfc3339==0.7',  # FIXME remove once yadage-schemas solves deps.
    'tablib>=0.12.1,<0.13',
    'webcolors==1.7',  # FIXME remove once yadage-schemas solves deps.
    'werkzeug==0.14.1',
    'yadage-schemas==0.7.16',
]

packages = find_packages()

# Get the version string. Cannot be done with import!
with open(os.path.join('reana_client', 'version.py'), 'rt') as f:
    version = re.search(
        '__version__\s*=\s*"(?P<version>.*)"\n',
        f.read()
    ).group('version')

setup(
    name='reana-client',
    version=version,
    description=__doc__,
    long_description=readme + '\n\n' + history,
    author='REANA',
    author_email='info@reana.io',
    url='https://github.com/reanahub/reana-client',
    packages=['reana_client', ],
    zip_safe=False,
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'reana-client = reana_client.cli:cli',
            'reana-cwl-runner = reana_client.cli.cwl_runner:cwl_runner'
        ],
    },
    extras_require=extras_require,
    install_requires=install_requires,
    setup_requires=setup_requires,
    tests_require=tests_require,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


<commit_before>try:
    import multiprocessing
except ImportError:
    pass

from setuptools import setup

setup(
    name='Flask-Imagine',
    version='0.1.6',
    description='Dynamic image resizing and storing on AWS S3 for Flask.',
    url='https://github.com/kronas/Flask-Imagine',

    author='Kronas',
    author_email='kronas.sw@gmail.com',
    license='MIT',

    packages=['flask_imagine'],

    install_requires=[

        'Flask>=0.9',
        'itsdangerous', # For Flask v0.9
        'Pillow',

    ],

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],

    zip_safe=False,
)
<commit_msg>v0.1.7<commit_after>try:
    import multiprocessing
except ImportError:
    pass

from setuptools import setup

setup(
    name='Flask-Imagine',
    version='0.1.7',
    description='Dynamic image resizing and storing on AWS S3 for Flask.',
    url='https://github.com/kronas/Flask-Imagine',

    author='Kronas',
    author_email='kronas.sw@gmail.com',
    license='MIT',

    packages=['flask_imagine'],

    install_requires=[

        'Flask>=0.9',
        'itsdangerous', # For Flask v0.9
        'Pillow',

    ],

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],

    zip_safe=False,
)
<|endoftext|>


<commit_before>import os
from pkg_resources import parse_requirements
from setuptools import setup

MY_DIR = os.path.dirname(__file__)
LONG_DESC = open(os.path.join(MY_DIR, 'README.md')).read()
req_fh = open(os.path.join(MY_DIR, 'requirements.txt'))
install_requirements = [str(r) for r in parse_requirements(req_fh)]
req_fh.close()

setup(name='scrapy-kafka',
      version='0.1.1',
      description='Kafka-based components for Scrapy',
      long_description=LONG_DESC,
      author='Didier Deshommes',
      author_email='dfdeshom@gmail.com',
      url='https://github.com/dfdeshom/scrapy-kafka',
      packages=['scrapy_kafka'],
      license='BSD',
      install_requires=install_requirements,
      extras_require={
          "docs": ['sphinx'],
      },
      dependency_links=[
        'https://github.com/mumrah/kafka-python/archive/v0.9.1.tar.gz#egg=kafka-python-0.9.1',
          ],
      classifiers=[
          'Programming Language :: Python',
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
      ])
<commit_msg>README file name has changed<commit_after>import os
from pkg_resources import parse_requirements
from setuptools import setup

MY_DIR = os.path.dirname(__file__)
LONG_DESC = open(os.path.join(MY_DIR, 'README.rst')).read()
req_fh = open(os.path.join(MY_DIR, 'requirements.txt'))
install_requirements = [str(r) for r in parse_requirements(req_fh)]
req_fh.close()

setup(name='scrapy-kafka',
      version='0.1.1',
      description='Kafka-based components for Scrapy',
      long_description=LONG_DESC,
      author='Didier Deshommes',
      author_email='dfdeshom@gmail.com',
      url='https://github.com/dfdeshom/scrapy-kafka',
      packages=['scrapy_kafka'],
      license='BSD',
      install_requires=install_requirements,
      extras_require={
          "docs": ['sphinx'],
      },
      dependency_links=[
          'https://github.com/mumrah/kafka-python/archive/v0.9.1.tar.gz#egg=kafka-python-0.9.1',
      ],
      classifiers=[
          'Programming Language :: Python',
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
      ])
<|endoftext|>


<commit_before>#
# Copyright (C) 2012-2014 Craig Hobbs
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

from setuptools import setup

tests_require = []

setup(
    name = 'chisel',
    version = '0.8.11',
    author = 'Craig Hobbs',
    author_email = 'craigahobbs@gmail.com',
    description = ('JSON web APIs made dirt simple'),
    keywords = 'json api server framework',
    url = 'https://github.com/craigahobbs/chisel',
    license = 'MIT',
    classifiers = [
        'Environment :: Web Environment',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
    ],
    packages = ['chisel'],
    test_suite='chisel.tests',
    tests_require = tests_require,
    extras_require = {
        'tests': tests_require,
    },
)
<commit_msg>Bump version to 0.8.12<commit_after>#
# Copyright (C) 2012-2014 Craig Hobbs
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

from setuptools import setup

tests_require = []

setup(
    name = 'chisel',
    version = '0.8.12',
    author = 'Craig Hobbs',
    author_email = 'craigahobbs@gmail.com',
    description = ('JSON web APIs made dirt simple'),
    keywords = 'json api server framework',
    url = 'https://github.com/craigahobbs/chisel',
    license = 'MIT',
    classifiers = [
        'Environment :: Web Environment',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
    ],
    packages = ['chisel'],
    test_suite='chisel.tests',
    tests_require = tests_require,
    extras_require = {
        'tests': tests_require,
    },
)
<|endoftext|>


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

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

package_info = {k: None for k in ["RELEASE", "COMMIT", "VERSION", "NAME"]}

for name in package_info:
    with open(os.path.join(__here__, "falafel", name)) as f:
        package_info[name] = f.read().strip()

BDIST_RPM_RUNNING = "bdist_rpm_running"

entry_points = {
    'console_scripts': [
        'insights-run = falafel.core:main',
        'insights-cli = falafel.console:main',
        'gen_api = falafel.tools.generate_api_config:main',
        'compare_api = falafel.tools.compare_uploader_configs:main',
        'falafel-web = falafel.web.daemon:main',
        'falafel-serve = falafel.web.server:main',
        'falafel-scaffold = falafel.scaffold:main',
        'falafel-content = falafel.content.server:main',
        'falafel-perf = falafel.tools.perf:main'
    ]
}
data_files = []

# If the install task is run, setuptools blindly tries to copy the service file
# under the /usr dir, causing a permissions error.  So we only want to include
# that file in the installation if we're building an RPM.
#
# When setuptools does a bdist_rpm, it creates a child task that runs `python
# setup.py install`.  It's this child process that really builds the data_files
# list; unfortunately there's no simple way for that process to know if it's
# running for an RPM build or not.
#
# To solve that, we are dropping a file from the parent process and checking
# for its existence in the child process.

if os.path.exists(os.path.join("../../../../..", BDIST_RPM_RUNNING)):
    data_files.append(('/usr/lib/systemd/system', ['falafel/web/falafel-web.service']))

if "bdist_rpm" in sys.argv:
    with open(BDIST_RPM_RUNNING, "w") as fp:
        fp.write("yes\n")

runtime = {
    'pyyaml',
    'tornado',
    'futures',
    'requests',
    'GitPython',
}

develop = {
    'flake8',
    'coverage',
    'pytest',
    'pytest-cov',
    'Sphinx',
    'sphinx_rtd_theme',
    'Jinja2',
}

if __name__ == "__main__":
    # allows for runtime modification of rpm name
    name = os.environ.get("FALAFEL_NAME", package_info["NAME"])

    try:
        setup(
            name=name,
            version=package_info["VERSION"],
            description="Insights Application Programming Interface",
            packages=find_packages(),
            package_data={"": package_info.keys() + ["*.json", "*.md", "*.html", "*.js", "*.yaml"]},
            install_requires=list(runtime),
            extras_require={
                'develop': list(runtime | develop),
                'optional': ['python-cjson', 'python-logstash', 'python-statsd'],
            },
            entry_points=entry_points,
            data_files=data_files
        )
    finally:
        if os.path.exists(BDIST_RPM_RUNNING):
            os.unlink(BDIST_RPM_RUNNING)
<commit_msg>Replace gitpython with subprocess<commit_after>import os
import sys
from setuptools import setup, find_packages

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

package_info = {k: None for k in ["RELEASE", "COMMIT", "VERSION", "NAME"]}

for name in package_info:
    with open(os.path.join(__here__, "falafel", name)) as f:
        package_info[name] = f.read().strip()

BDIST_RPM_RUNNING = "bdist_rpm_running"

entry_points = {
    'console_scripts': [
        'insights-run = falafel.core:main',
        'insights-cli = falafel.console:main',
        'gen_api = falafel.tools.generate_api_config:main',
        'compare_api = falafel.tools.compare_uploader_configs:main',
        'falafel-web = falafel.web.daemon:main',
        'falafel-serve = falafel.web.server:main',
        'falafel-scaffold = falafel.scaffold:main',
        'falafel-content = falafel.content.server:main',
        'falafel-perf = falafel.tools.perf:main'
    ]
}
data_files = []

# If the install task is run, setuptools blindly tries to copy the service file
# under the /usr dir, causing a permissions error.  So we only want to include
# that file in the installation if we're building an RPM.
#
# When setuptools does a bdist_rpm, it creates a child task that runs `python
# setup.py install`.  It's this child process that really builds the data_files
# list; unfortunately there's no simple way for that process to know if it's
# running for an RPM build or not.
#
# To solve that, we are dropping a file from the parent process and checking
# for its existence in the child process.

if os.path.exists(os.path.join("../../../../..", BDIST_RPM_RUNNING)):
    data_files.append(('/usr/lib/systemd/system', ['falafel/web/falafel-web.service']))

if "bdist_rpm" in sys.argv:
    with open(BDIST_RPM_RUNNING, "w") as fp:
        fp.write("yes\n")

runtime = {
    'pyyaml',
    'tornado',
    'futures',
    'requests',
}

develop = {
    'flake8',
    'coverage',
    'pytest',
    'pytest-cov',
    'Sphinx',
    'sphinx_rtd_theme',
    'Jinja2',
}

if __name__ == "__main__":
    # allows for runtime modification of rpm name
    name = os.environ.get("FALAFEL_NAME", package_info["NAME"])

    try:
        setup(
            name=name,
            version=package_info["VERSION"],
            description="Insights Application Programming Interface",
            packages=find_packages(),
            package_data={"": package_info.keys() + ["*.json", "*.md", "*.html", "*.js", "*.yaml"]},
            install_requires=list(runtime),
            extras_require={
                'develop': list(runtime | develop),
                'optional': ['python-cjson', 'python-logstash', 'python-statsd'],
            },
            entry_points=entry_points,
            data_files=data_files
        )
    finally:
        if os.path.exists(BDIST_RPM_RUNNING):
            os.unlink(BDIST_RPM_RUNNING)
<|endoftext|>


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

version = '0.9.6'

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

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

* A framework to make writing web applications in Python easy

* Inspired by Rails and TurboGears

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

* Harness existing knowledge about Python

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

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

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

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

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

Pylons %s described on this page is stable.

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

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

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

    > easy_install Pylons

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

""" % version,
    keywords='web wsgi framework sqlalchemy formencode mako templates buffet',
    license='BSD',
    author='Ben Bangert, Philip Jenvey, James Gardner',
    author_email='ben@groovie.org, pjenvey@groovie.org',
    url='http://www.pylonshq.com/',
    packages=find_packages(exclude=['ez_setup']),
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        "Routes>=1.7", "WebHelpers==dev,>=0.3.1dev-r2037", "Beaker>=0.7.3",
        "Paste>=1.3", "PasteDeploy>=1.3", "PasteScript>=1.3.2",
        "FormEncode>=0.7", "simplejson>=1.7.1", "decorator>=2.0.1",
        "nose>=0.9.2,<0.10", "Mako>=0.1.6"
    ],
    dependency_links=[
        "http://www.pylonshq.com/download/"
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Framework :: Pylons",
    ],
    extras_require = {
        'pudge': ["docutils>=0.4", "elementtree>=1.2.6", "kid>=0.9",
                  "Pygments>=0.7", "pudge>=0.1.3",
                  "buildutils>=0.1.2"],
        'cheetah':["Cheetah>=1.0", "TurboCheetah>=0.9.5"],
        'myghty':["Myghty>=1.1"],
        'kid':["kid>=0.9", "TurboKid>=0.9.1"],
        'genshi':["Genshi>=0.3.6"],
        'full':[
            "docutils>=0.4", "elementtree>=1.2.6",
            "Pygments>=0.7", "pudge>=0.1.3",
            "buildutils>=0.1.2", "Cheetah>=1.0",
            "TurboCheetah>=0.9.5", "kid>=0.9", "TurboKid>=0.9.",
        ],
    },
    entry_points="""
    [paste.paster_command]
    controller = pylons.commands:ControllerCommand
    restcontroller = pylons.commands:RestControllerCommand
    shell = pylons.commands:ShellCommand

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

    [python.templating.engines]
    pylonsmyghty = pylons.templating:MyghtyTemplatePlugin [myghty]
    """,
)
<commit_msg>[svn] Forcing nose lower than 0.10a.<commit_after>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

version = '0.9.6'

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

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

* A framework to make writing web applications in Python easy

* Inspired by Rails and TurboGears

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

* Harness existing knowledge about Python

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

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

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

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

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

Pylons %s described on this page is stable.

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

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

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

    > easy_install Pylons

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

""" % version,
    keywords='web wsgi framework sqlalchemy formencode mako templates buffet',
    license='BSD',
    author='Ben Bangert, Philip Jenvey, James Gardner',
    author_email='ben@groovie.org, pjenvey@groovie.org',
    url='http://www.pylonshq.com/',
    packages=find_packages(exclude=['ez_setup']),
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        "Routes>=1.7", "WebHelpers==dev,>=0.3.1dev-r2037", "Beaker>=0.7.4",
        "Paste>=1.3", "PasteDeploy>=1.3", "PasteScript>=1.3.2",
        "FormEncode>=0.7", "simplejson>=1.7.1", "decorator>=2.0.1",
        "nose>=0.9.2,<=0.9.9", "Mako>=0.1.6"
    ],
    dependency_links=[
        "http://www.pylonshq.com/download/"
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Framework :: Pylons",
    ],
    extras_require = {
        'pudge': ["docutils>=0.4", "elementtree>=1.2.6", "kid>=0.9",
                  "Pygments>=0.7", "pudge>=0.1.3",
                  "buildutils>=0.1.2"],
        'cheetah':["Cheetah>=1.0", "TurboCheetah>=0.9.5"],
        'myghty':["Myghty>=1.1"],
        'kid':["kid>=0.9", "TurboKid>=0.9.1"],
        'genshi':["Genshi>=0.3.6"],
        'full':[
            "docutils>=0.4", "elementtree>=1.2.6",
            "Pygments>=0.7", "pudge>=0.1.3",
            "buildutils>=0.1.2", "Cheetah>=1.0",
            "TurboCheetah>=0.9.5", "kid>=0.9", "TurboKid>=0.9.",
        ],
    },
    entry_points="""
    [paste.paster_command]
    controller = pylons.commands:ControllerCommand
    restcontroller = pylons.commands:RestControllerCommand
    shell = pylons.commands:ShellCommand

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

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


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

from sslyze import SSLYZE_VERSION, PROJECT_URL
from distutils.core import setup

setup(name='SSLyze',
    version=SSLYZE_VERSION,
    description='Fast and full-featured SSL scanner',
    long_description=open('README.md').read(),
    author_email='sslyze@isecpartners.com',
    url=PROJECT_URL,
    scripts=['sslyze.py'],
    packages=['plugins', 'utils', 'utils.ctSSL'],
    package_data={'plugins': ['data/mozilla_cacert.pem','data/mozilla_ev_oids.py']},
    license=open('LICENSE.txt').read(),
    )
<commit_msg>Add authors to setup.py<commit_after>#!/usr/bin/env python

from sslyze import SSLYZE_VERSION, PROJECT_URL
from distutils.core import setup

setup(name='SSLyze',
    version=SSLYZE_VERSION,
    description='Fast and full-featured SSL scanner',
    long_description=open('README.md').read()+ '\n' +
                     open('AUTHORS.txt').read(),
    author_email='sslyze@isecpartners.com',
    url=PROJECT_URL,
    scripts=['sslyze.py'],
    packages=['plugins', 'utils', 'utils.ctSSL'],
    package_data={'plugins': ['data/mozilla_cacert.pem','data/mozilla_ev_oids.py']},
    license=open('LICENSE.txt').read(),
    )
<|endoftext|>


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

setup(name='cc.license',
      version='0.13.11',
      namespace_packages = ['cc',],
      description="License selection based on ccREL-based metadata.",
      classifiers=[],
      keywords='',
      author='Creative Commons',
      author_email='software@creativecommons.org',
      url='http://wiki.creativecommons.org/CcLicense',
      license='MIT',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      include_package_data=True,
      #package_data={'cc.license': ['*.xml', '*.txt']}, # doesn't work
      zip_safe=False,
      test_suite='nose.collector',
      install_requires=[
        'rdflib<3.0',
        'cc.licenserdf',
        'setuptools',
        'zope.interface',
        'nose',
        'lxml',
        'rdfadict',
        'python-gettext',
        'enum',
        'zope.i18n',
        'zope.pagetemplate',
        'jinja2',
        'cc.i18n',
      ],
      setup_requires=['setuptools-git',],
      )
<commit_msg>New version number for a cc.i18npkg-less world.<commit_after>from setuptools import setup, find_packages
import sys, os

setup(name='cc.license',
      version='0.13.12',
      namespace_packages = ['cc',],
      description="License selection based on ccREL-based metadata.",
      classifiers=[],
      keywords='',
      author='Creative Commons',
      author_email='software@creativecommons.org',
      url='http://wiki.creativecommons.org/CcLicense',
      license='MIT',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      include_package_data=True,
      #package_data={'cc.license': ['*.xml', '*.txt']}, # doesn't work
      zip_safe=False,
      test_suite='nose.collector',
      install_requires=[
        'rdflib<3.0',
        'cc.licenserdf',
        'setuptools',
        'zope.interface',
        'nose',
        'lxml',
        'rdfadict',
        'python-gettext',
        'enum',
        'zope.i18n',
        'zope.pagetemplate',
        'jinja2',
        'cc.i18n',
      ],
      setup_requires=['setuptools-git',],
      )
<|endoftext|>


<commit_before>#! /usr/bin/env python
# vi:ts=4:et

# $Id$

"""Setup script for the PycURL module distribution."""

import os, sys
import distutils
from distutils.core import setup
from distutils.extension import Extension
from distutils.util import split_quoted
from distutils.version import LooseVersion

include_dirs = []
define_macros = []
library_dirs = []
libraries = []
runtime_library_dirs = []
extra_objects = []
extra_compile_args = []
extra_link_args = []

if sys.platform == "win32":
    # Windows users have to configure the CURL_DIR path parameter to match
    # their cURL source installation.  The path set here is just an example
    # and thus unlikely to match your installation.
    CURL_DIR = r"c:\src\curl-7.9.8"
    include_dirs.append(os.path.join(CURL_DIR, "include"))
    extra_objects.append(os.path.join(CURL_DIR, "lib", "libcurl.lib"))
else:
    # Find out the rest the hard way
    for e in split_quoted(os.popen("curl-config --cflags").read()):
        if e[:2] == "-I":
            include_dirs.append(e[2:])
        else:
            extra_compile_args.append(e)
    for e in split_quoted(os.popen("curl-config --libs").read()):
        if e[:2] == "-l":
            libraries.append(e[2:])
        elif e[:2] == "-L":
            library_dirs.append(e[2:])
        else:
            extra_link_args.append(e)
    if not libraries:
        libraries.append("curl")
    # Add extra compile flag for MacOS X
    if sys.platform[:-1] == "darwin":
        extra_link_args.append("-flat_namespace")

###############################################################################

def get_kw(**kw): return kw

ext = Extension(
    name="pycurl",
    sources=[
        os.path.join("src", "curl.c"),
    ],
    include_dirs=include_dirs,
    define_macros=define_macros,
    library_dirs=library_dirs,
    libraries=libraries,
    runtime_library_dirs=runtime_library_dirs,
    extra_objects=extra_objects,
    extra_compile_args=extra_compile_args,
    extra_link_args=extra_link_args,
)
##print ext.__dict__; sys.exit(1)

setup_args = get_kw(
    name="pycurl",
    version="7.9.8.4",
    description="PycURL -- cURL library module for Python",
    author="Kjetil Jacobsen, Markus F.X.J. Oberhumer",
    author_email="kjetilja@cs.uit.no, markus@oberhumer.com",
    maintainer="Kjetil Jacobsen, Markus F.X.J. Oberhumer",
    maintainer_email="kjetilja@cs.uit.no, markus@oberhumer.com",
    url="http://pycurl.sourceforge.net/",
    license="GNU Lesser General Public License (LGPL)",
    data_files = [
        # list of tuples with (path to install to, a list of files)
        (os.path.join("doc", "pycurl"), [
            "COPYING", "INSTALL", "README", "TODO",
        ]),
        (os.path.join("doc", "pycurl", "examples"), [
            os.path.join("examples", "basicfirst.py"),
            os.path.join("examples", "curl.py"),
            os.path.join("examples", "retriever.py"),
            os.path.join("examples", "sfquery.py"),
            os.path.join("examples", "xmlrpc_curl.py"),
        ]),
    ],
    ext_modules=[ext],
    long_description="""
This module provides Python bindings for the cURL library.""",
)

##print distutils.__version__
setup_args["licence"] = setup_args["license"]
if LooseVersion(distutils.__version__) > LooseVersion("1.0.1"):
    setup_args["platforms"] = "All"

apply(setup, (), setup_args)

<commit_msg>also install gtkhtml_demo.py in the examples directory<commit_after>#! /usr/bin/env python
# vi:ts=4:et

# $Id$

"""Setup script for the PycURL module distribution."""

import os, sys
import distutils
from distutils.core import setup
from distutils.extension import Extension
from distutils.util import split_quoted
from distutils.version import LooseVersion

include_dirs = []
define_macros = []
library_dirs = []
libraries = []
runtime_library_dirs = []
extra_objects = []
extra_compile_args = []
extra_link_args = []

if sys.platform == "win32":
    # Windows users have to configure the CURL_DIR path parameter to match
    # their cURL source installation.  The path set here is just an example
    # and thus unlikely to match your installation.
    CURL_DIR = r"c:\src\curl-7.9.8"
    include_dirs.append(os.path.join(CURL_DIR, "include"))
    extra_objects.append(os.path.join(CURL_DIR, "lib", "libcurl.lib"))
else:
    # Find out the rest the hard way
    for e in split_quoted(os.popen("curl-config --cflags").read()):
        if e[:2] == "-I":
            include_dirs.append(e[2:])
        else:
            extra_compile_args.append(e)
    for e in split_quoted(os.popen("curl-config --libs").read()):
        if e[:2] == "-l":
            libraries.append(e[2:])
        elif e[:2] == "-L":
            library_dirs.append(e[2:])
        else:
            extra_link_args.append(e)
    if not libraries:
        libraries.append("curl")
    # Add extra compile flag for MacOS X
    if sys.platform[:-1] == "darwin":
        extra_link_args.append("-flat_namespace")

###############################################################################

def get_kw(**kw): return kw

ext = Extension(
    name="pycurl",
    sources=[
        os.path.join("src", "curl.c"),
    ],
    include_dirs=include_dirs,
    define_macros=define_macros,
    library_dirs=library_dirs,
    libraries=libraries,
    runtime_library_dirs=runtime_library_dirs,
    extra_objects=extra_objects,
    extra_compile_args=extra_compile_args,
    extra_link_args=extra_link_args,
)
##print ext.__dict__; sys.exit(1)

setup_args = get_kw(
    name="pycurl",
    version="7.9.8.4",
    description="PycURL -- cURL library module for Python",
    author="Kjetil Jacobsen, Markus F.X.J. Oberhumer",
    author_email="kjetilja@cs.uit.no, markus@oberhumer.com",
    maintainer="Kjetil Jacobsen, Markus F.X.J. Oberhumer",
    maintainer_email="kjetilja@cs.uit.no, markus@oberhumer.com",
    url="http://pycurl.sourceforge.net/",
    license="GNU Lesser General Public License (LGPL)",
    data_files = [
        # list of tuples with (path to install to, a list of files)
        (os.path.join("doc", "pycurl"), [
            "COPYING", "INSTALL", "README", "TODO",
        ]),
        (os.path.join("doc", "pycurl", "examples"), [
            os.path.join("examples", "basicfirst.py"),
            os.path.join("examples", "curl.py"),
            os.path.join("examples", "retriever.py"),
            os.path.join("examples", "xmlrpc_curl.py"),
            os.path.join("examples", "sfquery.py"),
            os.path.join("examples", "gtkhtml_demo.py"),
        ]),
    ],
    ext_modules=[ext],
    long_description="""
This module provides Python bindings for the cURL library.""",
)

##print distutils.__version__
setup_args["licence"] = setup_args["license"]
if LooseVersion(distutils.__version__) > LooseVersion("1.0.1"):
    setup_args["platforms"] = "All"

apply(setup, (), setup_args)

<|endoftext|>