<commit_before>#!/usr/bin/env python
import glob
import os
import subprocess
import platform
from setuptools import setup, find_packages
from version import get_version
from commands import create_bucket_types

install_requires = ["riak_pb >=2.0.0"]
requires = ["riak_pb(>=2.0.0)"]
tests_require = []
if platform.python_version() < '2.7':
    tests_require.append("unittest2")

setup(
    name='riak',
    version=get_version(),
    packages=find_packages(),
    requires=requires,
    install_requires=install_requires,
    tests_require=tests_require,
    package_data={'riak': ['erl_src/*']},
    description='Python client for Riak',
    zip_safe=True,
    options={'easy_install': {'allow_hosts': 'pypi.python.org'}},
    include_package_data=True,
    license='Apache 2',
    platforms='Platform Independent',
    author='Basho Technologies',
    author_email='clients@basho.com',
    test_suite='riak.tests.suite',
    url='https://github.com/basho/riak-python-client',
    cmdclass={'create_bucket_types': create_bucket_types},
    classifiers=['License :: OSI Approved :: Apache Software License',
                 'Intended Audience :: Developers',
                 'Operating System :: OS Independent',
                 'Topic :: Database']
    )
<commit_msg>Pyflakes fix for build<commit_after>#!/usr/bin/env python
import platform
from setuptools import setup, find_packages
from version import get_version
from commands import create_bucket_types

install_requires = ["riak_pb >=2.0.0"]
requires = ["riak_pb(>=2.0.0)"]
tests_require = []
if platform.python_version() < '2.7':
    tests_require.append("unittest2")

setup(
    name='riak',
    version=get_version(),
    packages=find_packages(),
    requires=requires,
    install_requires=install_requires,
    tests_require=tests_require,
    package_data={'riak': ['erl_src/*']},
    description='Python client for Riak',
    zip_safe=True,
    options={'easy_install': {'allow_hosts': 'pypi.python.org'}},
    include_package_data=True,
    license='Apache 2',
    platforms='Platform Independent',
    author='Basho Technologies',
    author_email='clients@basho.com',
    test_suite='riak.tests.suite',
    url='https://github.com/basho/riak-python-client',
    cmdclass={'create_bucket_types': create_bucket_types},
    classifiers=['License :: OSI Approved :: Apache Software License',
                 'Intended Audience :: Developers',
                 'Operating System :: OS Independent',
                 'Topic :: Database']
    )
<|endoftext|>


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

from setuptools import setup, find_packages

PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3

if PY2:
    readme = open('README.md').read()
    license = open('LICENSE').read()
elif PY3:
    readme = open('README.md', encoding='utf-8').read()
    license = open('LICENSE', encoding='utf-8').read()

setup(
    name='yamale',
    version='1.7.2',
    url='https://github.com/23andMe/Yamale',
    author='Bo Lopker',
    author_email='blopker@23andme.com',
    description='A schema and validator for YAML.',
    long_description=readme,
    long_description_content_type='text/markdown',
    license='MIT',
    packages=find_packages(),
    include_package_data=True,
    install_requires=['pyyaml'],
    entry_points={
        'console_scripts': ['yamale=yamale.command_line:main'],
    },
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4'
    ]
)
<commit_msg>Bump to 1.8.0<commit_after>#!/usr/bin/env python
import sys

from setuptools import setup, find_packages

PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3

if PY2:
    readme = open('README.md').read()
    license = open('LICENSE').read()
elif PY3:
    readme = open('README.md', encoding='utf-8').read()
    license = open('LICENSE', encoding='utf-8').read()

setup(
    name='yamale',
    version='1.8.0',
    url='https://github.com/23andMe/Yamale',
    author='Bo Lopker',
    author_email='blopker@23andme.com',
    description='A schema and validator for YAML.',
    long_description=readme,
    long_description_content_type='text/markdown',
    license='MIT',
    packages=find_packages(),
    include_package_data=True,
    install_requires=['pyyaml'],
    entry_points={
        'console_scripts': ['yamale=yamale.command_line:main'],
    },
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4'
    ]
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
req = ['nose','python-dateutil','numpy','pandas','xarray','matplotlib','seaborn','astropy','h5py','cython',]
pipreq=['pymap3d','sciencedates','gridaurora']
# %%
try:
    import conda.cli
    conda.cli.main('install',*req)
except Exception as e:
    import pip
    pip.main(['install',*req])
pip.main(['install',*pipreq])
# %%
import setuptools #needed to enable develop
from numpy.distutils.core import setup,Extension
from glob import glob
from os.path import join

# f2py -m aurora -c egrid.f maxt.f glow.f vquart.f gchem.f ephoto.f solzen.f rcolum.f etrans.f exsect.f ssflux.f snoem.f snoemint.f geomag.f nrlmsise00.f qback.f fieldm.f aurora_sub.f

# FUTURE: iri90.f not included in f2py b/c we use the pyiri90 package
# FUTURE: nrlmsise00.f not included .... msise00 package
fortranfiles=['egrid.f','maxt.f','glow.f',
              'vquart.f','gchem.f','ephoto.f','solzen.f','rcolum.f',
              'etrans.f','exsect.f','ssflux.f','snoem.f','snoemint.f',
              'geomag.f','qback.f','fieldm.f',
              'nrlmsise00.f','iri90.f',
              'aurora_sub.f']

root='fortran'

fortranpaths = [join(root,f) for f in fortranfiles]
fortdata = glob(join(root,'*.dat'))
iridata = glob(join('iri','*.asc')) #in pyiri90
#%% prelim
ext=[Extension(name='glowfort',
               sources=fortranpaths,
               f2py_options=['--quiet'],
               #extra_f77_compile_args=['-finit-local-zero'] #not needed
)]
               #include_dirs=[root],
               #library_dirs=[root])]

# %%
setup(name='glowaurora',
      packages=['glowaurora'],
      author='Michael Hirsch, Ph.D.',
      description='Model of auroral and airglow emissions',
      url='https://github.com/scivision/glowaurora',
#      package_dir={'glowaurora': 'glowaurora'}, #not working
 #     package_data={'glowaurora': ['fortran/*.dat']}, #not working, use data_files
      include_package_data=True,
      ext_modules=ext,
      data_files=[('glowaurora',fortdata),
                  ('glowaurora/iri',iridata)
                  ], #must have data_files to copy *.dat to site-packages
      )

<commit_msg>ver [ci skip]<commit_after>#!/usr/bin/env python
req = ['nose','python-dateutil','numpy','pandas','xarray','matplotlib','seaborn','astropy','h5py','cython',]
pipreq=['pymap3d','sciencedates','gridaurora']
# %%
try:
    import conda.cli
    conda.cli.main('install',*req)
except Exception as e:
    import pip
    pip.main(['install',*req])
pip.main(['install',*pipreq])
# %%
import setuptools #needed to enable develop
from numpy.distutils.core import setup,Extension
from glob import glob
from os.path import join

# f2py -m aurora -c egrid.f maxt.f glow.f vquart.f gchem.f ephoto.f solzen.f rcolum.f etrans.f exsect.f ssflux.f snoem.f snoemint.f geomag.f nrlmsise00.f qback.f fieldm.f aurora_sub.f

# FUTURE: iri90.f not included in f2py b/c we use the pyiri90 package
# FUTURE: nrlmsise00.f not included .... msise00 package
fortranfiles=['egrid.f','maxt.f','glow.f',
              'vquart.f','gchem.f','ephoto.f','solzen.f','rcolum.f',
              'etrans.f','exsect.f','ssflux.f','snoem.f','snoemint.f',
              'geomag.f','qback.f','fieldm.f',
              'nrlmsise00.f','iri90.f',
              'aurora_sub.f']

root='fortran'

fortranpaths = [join(root,f) for f in fortranfiles]
fortdata = glob(join(root,'*.dat'))
iridata = glob(join('iri','*.asc')) #in pyiri90
#%% prelim
ext=[Extension(name='glowfort',
               sources=fortranpaths,
               f2py_options=['--quiet'],
               #extra_f77_compile_args=['-finit-local-zero'] #not needed
)]
               #include_dirs=[root],
               #library_dirs=[root])]

# %%
setup(name='glowaurora',
      packages=['glowaurora'],
      version='1.0.0',
      author='Michael Hirsch, Ph.D.',
      description='Model of auroral and airglow emissions',
      url='https://github.com/scivision/glowaurora',
#      package_dir={'glowaurora': 'glowaurora'}, #not working
 #     package_data={'glowaurora': ['fortran/*.dat']}, #not working, use data_files
      include_package_data=True,
      ext_modules=ext,
      data_files=[('glowaurora',fortdata),
                  ('glowaurora/iri',iridata)
                  ], #must have data_files to copy *.dat to site-packages
      )

<|endoftext|>


<commit_before>import os
import io
import re
from cx_Freeze import setup, Executable

COMPANY_NAME = 'Lead Pipe Software'
PRODUCT_NAME = 'RabbitHole'

# This IS the documentation you're looking for...
# https://cx-freeze.readthedocs.org/en/latest/distutils.html

# Dependencies are automatically detected, but it might need
# fine tuning.

# build_exe_options = dict(
#     packages = ["os", "RabbitHole.message", "RabbitHole.rabbitmq"],
#     excludes = [])

build_exe_options = dict(
    packages=["os"],
    excludes=[],
    include_files=['README.md', 'LICENSE', 'RabbitHole/RabbitHole.ini'])

bdist_msi_options = {
    'upgrade_code': '{9E074566-9492-433C-BA5D-391D016D78D6}',
    'add_to_path': False,
    'initial_target_dir': r'[ProgramFilesFolder]\%s\%s' % (COMPANY_NAME, PRODUCT_NAME),
}

base = 'Console'

executables = [
    Executable('RabbitHole/__main__.py',
               compress=True,
               base=base,
               targetName='RabbitHole.exe')
]

def read(*names, **kwargs):
    with io.open(
            os.path.join(os.path.dirname(__file__), *names),
            encoding=kwargs.get("encoding", "utf8")
    ) as fp:
        return fp.read()

def find_version(*file_paths):
    version_file = read(*file_paths)
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.")

setup(name='RabbitHole',
      version=find_version("RabbitHole", "__init__.py"),
      description='RabbitHole is a RabbitMQ message utility',
      options={'build_exe': build_exe_options,
               'bdist_msi': bdist_msi_options},
      executables=executables)
<commit_msg>Minor tweaks to setup.py<commit_after>import os
import io
import re
from cx_Freeze import setup, Executable

COMPANY_NAME = 'Lead Pipe Software'
PRODUCT_NAME = 'RabbitHole'

# This IS the documentation you're looking for...
# https://cx-freeze.readthedocs.org/en/latest/distutils.html

# Dependencies are automatically detected, but it might need
# fine tuning.

# build_exe_options = dict(
#     packages = ["os", "RabbitHole.message", "RabbitHole.rabbitmq"],
#     excludes = [])

build_exe_options = dict(
    packages=["os"],
    excludes=[],
    include_files=['README.md', 'LICENSE', 'RabbitHole/RabbitHole.ini'])

bdist_msi_options = {
    'upgrade_code': '{9E074566-9492-433C-BA5D-391D016D78D6}',
    'add_to_path': False,
    'initial_target_dir': r'[ProgramFilesFolder]\%s\%s' % (COMPANY_NAME, PRODUCT_NAME),
}

base = 'Console'

executables = [
    Executable('RabbitHole/__main__.py',
               compress=True,
               base=base,
               targetName='RabbitHole.exe')
]

def read(*names, **kwargs):
    with io.open(
            os.path.join(os.path.dirname(__file__), *names),
            encoding=kwargs.get('encoding', 'utf8')
    ) as fp:
        return fp.read()

def find_version(*file_paths):
    version_file = read(*file_paths)
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError('Unable to find version string.')

setup(name='RabbitHole',
      version=find_version('RabbitHole', '__init__.py'),
      description='RabbitHole is a RabbitMQ message utility',
      author='Lead Pipe Software',
      options={'build_exe': build_exe_options,
               'bdist_msi': bdist_msi_options},
      executables=executables)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name = "pocket", # pip install pocket
    description = "api wrapper for getpocket.com",
    #long_description=open('README.md', 'rt').read(),

    # version
    # third part for minor release
    # second when api changes
    # first when it becomes stable someday
    version = "0.3.0",
    author = 'Tapan Pandita',
    author_email = "tapan.pandita@gmail.com",

    url = 'http://github.com/tapanpandita/pocket/',
    license = 'BSD',

    # as a practice no need to hard code version unless you know program wont
    # work unless the specific versions are used
    install_requires = ["requests", ],

    py_modules = ["pocket"],

    zip_safe = True,
)

# TODO: Do all this and delete these lines
# register: Create an accnt on pypi, store your credentials in ~/.pypirc:
#
# [pypirc]
# servers =
#     pypi
#
# [server-login]
# username:<username>
# password:<pass>
#
# $ python setup.py register # one time only, will create pypi page for pocket
# $ python setup.py sdist --formats=gztar,zip upload # create a new release
#
<commit_msg>create new release with merged codebase<commit_after>from setuptools import setup

setup(
    name = "pocket", # pip install pocket
    description = "api wrapper for getpocket.com",
    #long_description=open('README.md', 'rt').read(),

    # version
    # third part for minor release
    # second when api changes
    # first when it becomes stable someday
    version = "0.3.1",
    author = 'Tapan Pandita',
    author_email = "tapan.pandita@gmail.com",

    url = 'http://github.com/tapanpandita/pocket/',
    license = 'BSD',

    # as a practice no need to hard code version unless you know program wont
    # work unless the specific versions are used
    install_requires = ["requests", ],

    py_modules = ["pocket"],

    zip_safe = True,
)

# TODO: Do all this and delete these lines
# register: Create an accnt on pypi, store your credentials in ~/.pypirc:
#
# [pypirc]
# servers =
#     pypi
#
# [server-login]
# username:<username>
# password:<pass>
#
# $ python setup.py register # one time only, will create pypi page for pocket
# $ python setup.py sdist --formats=gztar,zip upload # create a new release
#
<|endoftext|>


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

# This file is part of beets.
# Copyright 2010, Adrian Sampson.
#
# 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.

import os
from setuptools import setup

def _read(fn):
    path = os.path.join(os.path.dirname(__file__), fn)
    return open(path).read()

setup(name='beets',
      version='1.0b8',
      description='music tagger and library organizer',
      author='Adrian Sampson',
      author_email='adrian@radbox.org',
      url='http://beets.radbox.org/',
      license='MIT',
      platforms='ALL',
      long_description=_read('README.rst'),
      test_suite='test.testall.suite',

      packages=[
          'beets',
          'beets.ui',
          'beets.autotag',
          'beetsplug',
          'beetsplug.bpd',
      ],
      namespace_packages=['beetsplug'],
      entry_points={
          'console_scripts': [
              'beet = beets.ui:main',
          ],
      },

      install_requires=[
          'mutagen',
          'python-musicbrainz2 >= 0.7.2',
          'munkres',
      ],

      classifiers=[
          'Topic :: Multimedia :: Sound/Audio',
          'Topic :: Multimedia :: Sound/Audio :: Players :: MP3',
          'License :: OSI Approved :: MIT License',
          'Environment :: Console',
          'Development Status :: 4 - Beta',
      ],
)
<commit_msg>add missing util package to setup.py<commit_after>#!/usr/bin/env python

# This file is part of beets.
# Copyright 2010, Adrian Sampson.
#
# 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.

import os
from setuptools import setup

def _read(fn):
    path = os.path.join(os.path.dirname(__file__), fn)
    return open(path).read()

setup(name='beets',
      version='1.0b8',
      description='music tagger and library organizer',
      author='Adrian Sampson',
      author_email='adrian@radbox.org',
      url='http://beets.radbox.org/',
      license='MIT',
      platforms='ALL',
      long_description=_read('README.rst'),
      test_suite='test.testall.suite',

      packages=[
          'beets',
          'beets.ui',
          'beets.autotag',
          'beets.util',
          'beetsplug',
          'beetsplug.bpd',
      ],
      namespace_packages=['beetsplug'],
      entry_points={
          'console_scripts': [
              'beet = beets.ui:main',
          ],
      },

      install_requires=[
          'mutagen',
          'python-musicbrainz2 >= 0.7.2',
          'munkres',
      ],

      classifiers=[
          'Topic :: Multimedia :: Sound/Audio',
          'Topic :: Multimedia :: Sound/Audio :: Players :: MP3',
          'License :: OSI Approved :: MIT License',
          'Environment :: Console',
          'Development Status :: 4 - Beta',
      ],
)
<|endoftext|>


<commit_before>'''
Buildozer
'''

from setuptools import setup
from os.path import dirname, join
import codecs
import os
import re

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

def find_version(*file_paths):
    # Open in Latin-1 so that we avoid encoding errors.
    # Use codecs.open for Python 2 compatibility
    with codecs.open(os.path.join(here, *file_paths), 'r', 'utf-8') as f:
        version_file = f.read()

    # The version line must have the form
    # __version__ = 'ver'
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.")

curdir = dirname(__file__)
with open(join(curdir, "README.rst")) as fd:
    readme = fd.read()
with open(join(curdir, "CHANGELOG.md")) as fd:
    changelog = fd.read()

setup(
    name='buildozer',
    version=find_version('buildozer', '__init__.py'),
    description='Generic Python packager for Android / iOS and Desktop',
    long_description=readme + "\n\n" + changelog,
    author='Mathieu Virbel',
    author_email='mat@kivy.org',
    url='http://github.com/kivy/buildozer',
    license='MIT',
    packages=[
        'buildozer',
        'buildozer.targets',
        'buildozer.libs',
        'buildozer.scripts'],
    package_data={'buildozer': ['default.spec']},
    include_package_data=True,
    install_requires=['pexpect'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Build Tools',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.1',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3'],
    entry_points={
        'console_scripts': [
            'buildozer=buildozer.scripts.client:main',
            'buildozer-remote=buildozer.scripts.remote:main']})
<commit_msg>fix encoding issue. Closes #225<commit_after>'''
Buildozer
'''

from setuptools import setup
from os.path import dirname, join
import codecs
import os
import re
import io

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

def find_version(*file_paths):
    # Open in Latin-1 so that we avoid encoding errors.
    # Use codecs.open for Python 2 compatibility
    with codecs.open(os.path.join(here, *file_paths), 'r', 'utf-8') as f:
        version_file = f.read()

    # The version line must have the form
    # __version__ = 'ver'
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              version_file, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Unable to find version string.")

curdir = dirname(__file__)
with io.open(join(curdir, "README.rst"), encoding="utf-8") as fd:
    readme = fd.read()
with io.open(join(curdir, "CHANGELOG.md"), encoding="utf-8") as fd:
    changelog = fd.read()

setup(
    name='buildozer',
    version=find_version('buildozer', '__init__.py'),
    description='Generic Python packager for Android / iOS and Desktop',
    long_description=readme + "\n\n" + changelog,
    author='Mathieu Virbel',
    author_email='mat@kivy.org',
    url='http://github.com/kivy/buildozer',
    license='MIT',
    packages=[
        'buildozer', 'buildozer.targets', 'buildozer.libs', 'buildozer.scripts'
    ],
    package_data={'buildozer': ['default.spec']},
    include_package_data=True,
    install_requires=['pexpect'],
    classifiers=[
        'Development Status :: 4 - Beta', 'Intended Audience :: Developers',
        'Topic :: Software Development :: Build Tools',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.1',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3'
    ],
    entry_points={
        'console_scripts': [
            'buildozer=buildozer.scripts.client:main',
            'buildozer-remote=buildozer.scripts.remote:main'
        ]
    })
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

config = {
    'name': 'PySciter',
    'author': 'pravic',
    'author_email': 'ehysta@gmail.com',
    'description': 'Python bindings for the Sciter - Embeddable HTML/CSS/script engine (cross-platform desktop GUI toolkit).',
    'url': 'http://github.com/sciter-sdk/pysciter/',
    'download_url': 'https://github.com/sciter-sdk/pysciter/releases',
    'bugtrack_url': 'https://github.com/sciter-sdk/pysciter/issues',
    'version': '0.4.18',
    'platforms': ['Windows', 'Linux', 'MacOS X', ],
    'packages': ['sciter', 'sciter.capi'],
    'install_requires': [''],
    'scripts': [],
    'keywords': ['gui', 'sciter', 'tiscript', 'htmlayout', 'html', 'css', 'web', 'cross-platform', ],
    'license': 'MIT',
    'classifiers': [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Operating System :: Microsoft :: Windows :: Windows XP',
        'Operating System :: Microsoft :: Windows :: Windows Vista',
        'Operating System :: Microsoft :: Windows :: Windows 7',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX :: Linux',
        'Environment :: MacOS X',
        'Environment :: Win32 (MS Windows)',
        'Environment :: X11 Applications :: GTK',
        'Environment :: Web Environment',
        'Programming Language :: C++',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Desktop Environment',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: User Interfaces',
        'Topic :: Software Development :: Widget Sets',
    ],
    'long_description': """
Introduction
============
Sciter (http://sciter.com) is an embeddable HTML/CSS/script engine with GPU accelerated rendering for desktop application UI.
It's a compact, single dll/dylib/so file (4-8 mb), engine without any additional dependencies.

Sciter uses Direct2D GPU accelerated graphics on modern Windows versions and GDI+ on XP.
On OS X, it uses standard CoreGraphics primitives, while the Linux version uses Cairo.

Sciter uses HTML5 set of elements, implements CSS level 2.1 in full, plus the most popular features of CSS level 3.
It also contains custom CSS extensions that are required to support desktop UI cases.
For example, flex units and various layout managers.

Check the `screenshot gallery <https://github.com/oskca/sciter#sciter-desktop-ui-examples>`_ of the desktop UI examples.

Installation
============

For installation instructions and usage examples please refer to `github project page <https://github.com/sciter-sdk/pysciter#getting-started>`_.

Compatibility
=============

PySciter requires Python 3.x (2.7 is planned in near future).

Sciter works on Microsoft Windows XP and above (x86/x64), Apple OS X v 10.7 and above (64-bit) and Linux/GTK (GTK v 3.0 and above, 64-bit only).

Feedback and getting involved
=============================
- PySciter Code Repository: https://github.com/sciter-sdk/pysciter
- Issue tracker: https://github.com/sciter-sdk/pysciter/issues
- Sciter official website: http://sciter.com
- Sciter forum: http://sciter.com/forums/
- Sciter SDK: https://github.com/c-smile/sciter-sdk

""",
}

setup(**config)
<commit_msg>version 0.4.19<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

config = {
    'name': 'PySciter',
    'author': 'pravic',
    'author_email': 'ehysta@gmail.com',
    'description': 'Python bindings for the Sciter - Embeddable HTML/CSS/script engine (cross-platform desktop GUI toolkit).',
    'url': 'http://github.com/sciter-sdk/pysciter/',
    'download_url': 'https://github.com/sciter-sdk/pysciter/releases',
    'bugtrack_url': 'https://github.com/sciter-sdk/pysciter/issues',
    'version': '0.4.19',
    'platforms': ['Windows', 'Linux', 'MacOS X', ],
    'packages': ['sciter', 'sciter.capi'],
    'install_requires': [''],
    'scripts': [],
    'keywords': ['gui', 'sciter', 'tiscript', 'htmlayout', 'html', 'css', 'web', 'cross-platform', ],
    'license': 'MIT',
    'classifiers': [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Operating System :: Microsoft :: Windows :: Windows XP',
        'Operating System :: Microsoft :: Windows :: Windows Vista',
        'Operating System :: Microsoft :: Windows :: Windows 7',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX :: Linux',
        'Environment :: MacOS X',
        'Environment :: Win32 (MS Windows)',
        'Environment :: X11 Applications :: GTK',
        'Environment :: Web Environment',
        'Programming Language :: C++',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Desktop Environment',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: User Interfaces',
        'Topic :: Software Development :: Widget Sets',
    ],
    'long_description': """
Introduction
============
Sciter (http://sciter.com) is an embeddable HTML/CSS/script engine with GPU accelerated rendering for desktop application UI.
It's a compact, single dll/dylib/so file (4-8 mb), engine without any additional dependencies.

Sciter uses Direct2D GPU accelerated graphics on modern Windows versions and GDI+ on XP.
On OS X, it uses standard CoreGraphics primitives, while the Linux version uses Cairo.

Sciter uses HTML5 set of elements, implements CSS level 2.1 in full, plus the most popular features of CSS level 3.
It also contains custom CSS extensions that are required to support desktop UI cases.
For example, flex units and various layout managers.

Check the `screenshot gallery <https://github.com/oskca/sciter#sciter-desktop-ui-examples>`_ of the desktop UI examples.

Installation
============

For installation instructions and usage examples please refer to `github project page <https://github.com/sciter-sdk/pysciter#getting-started>`_.

Compatibility
=============

PySciter requires Python 3.x (2.7 is planned in near future).

Sciter works on Microsoft Windows XP and above (x86/x64), Apple OS X v 10.7 and above (64-bit) and Linux/GTK (GTK v 3.0 and above, 64-bit only).

Feedback and getting involved
=============================
- PySciter Code Repository: https://github.com/sciter-sdk/pysciter
- Issue tracker: https://github.com/sciter-sdk/pysciter/issues
- Sciter official website: http://sciter.com
- Sciter forum: http://sciter.com/forums/
- Sciter SDK: https://github.com/c-smile/sciter-sdk

""",
}

setup(**config)
<|endoftext|>


<commit_before>import distribute_setup
distribute_setup.use_setuptools()

from setuptools import setup, find_packages

setup(
    name = 'yapga',
    version = '1',
    packages = find_packages(),

    # metadata for upload to PyPI
    author = 'Austin Bingham',
    author_email = 'austin.bingham@gmail.com',
    description = "Yet Another Python Gerrit API",
    license = 'MIT',
    keywords = 'gerrit',
    url = 'http://github.com/abingham/yapga',
    # download_url = '',
    long_description = 'An API for working with Gerrit from Python via the REST API.',
    zip_safe=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        ],
    platforms='any',
    setup_requires=[],
    install_requires=[],

    entry_points = {
        'console_scripts': [
            #'yapga = yapga.app:main',
            ],
        },
    )
<commit_msg>added baker to setup<commit_after>import distribute_setup
distribute_setup.use_setuptools()

from setuptools import setup, find_packages

setup(
    name='yapga',
    version='1',
    packages=find_packages(),

    # metadata for upload to PyPI
    author='Austin Bingham',
    author_email='austin.bingham@gmail.com',
    description="Yet Another Python Gerrit API",
    license='MIT',
    keywords='gerrit',
    url='http://github.com/abingham/yapga',
    # download_url = '',
    long_description='An API for working with Gerrit '
                     'from Python via the REST API.',
    zip_safe=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
    ],
    platforms='any',
    setup_requires=[],
    install_requires=[
        'baker',
    ],

    entry_points={
        'console_scripts': [
            #'yapga = yapga.app:main',
        ],
    },
)
<|endoftext|>


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

setup(
    name="abl.vpath",
    version="0.5.5",
    description="A OO-abstraction of file-systems",
    author="Stephan Diehl",
    author_email="stephan.diehl@ableton.com",
    url="",
    license="MIT",
    download_url='',
    install_requires=[
        "decorator",
        "abl.util",
        ],
    packages=find_packages(exclude=['ez_setup', 'tests']),
    namespace_packages = ['abl', 'abl.vpath'],
    # TODO-std: add the classifiers
    classifiers = [
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Topic :: Software Development :: Libraries :: Python Modules'
        'Topic :: System :: Filesystems',
    ],
    entry_points="""
    [abl.vpath.plugins]
    localfilefs=abl.vpath.base.localfs:LocalFileSystem
    memoryfs=abl.vpath.base.memory:MemoryFileSystem
    zipfs=abl.vpath.base.zip:ZipFileSystem
    """,
    zip_safe=False,
)
<commit_msg>new versionnumber<commit_after>import os
import sys
from setuptools import setup, find_packages

setup(
    name="abl.vpath",
    version="0.5.6",
    description="A OO-abstraction of file-systems",
    author="Stephan Diehl",
    author_email="stephan.diehl@ableton.com",
    url="",
    license="MIT",
    download_url='',
    install_requires=[
        "decorator",
        "abl.util",
        ],
    packages=find_packages(exclude=['ez_setup', 'tests']),
    namespace_packages = ['abl', 'abl.vpath'],
    # TODO-std: add the classifiers
    classifiers = [
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Topic :: Software Development :: Libraries :: Python Modules'
        'Topic :: System :: Filesystems',
    ],
    entry_points="""
    [abl.vpath.plugins]
    localfilefs=abl.vpath.base.localfs:LocalFileSystem
    memoryfs=abl.vpath.base.memory:MemoryFileSystem
    zipfs=abl.vpath.base.zip:ZipFileSystem
    """,
    zip_safe=False,
)
<|endoftext|>


<commit_before>import setuptools

def load_requirements(requirements_path):
    with open(requirements_path, 'r') as reqs:
        return reqs.read()

setuptools.setup(

    name='ostf_tests',
    version='0.1',

    description='cloud computing testing',

    zip_safe = False,

    packages=setuptools.find_packages(),

    include_package_data=True,

    install_requires=load_requirements('pip-requires'),

)
<commit_msg>added multiprocessing import in setup.py due to http://bugs.python.org/issue15881#msg170215<commit_after>import multiprocessing
import setuptools

def load_requirements(requirements_path):
    with open(requirements_path, 'r') as reqs:
        return reqs.read()

setuptools.setup(

    name='ostf_tests',
    version='0.1',

    description='cloud computing testing',

    zip_safe = False,

    packages=setuptools.find_packages(),

    include_package_data=True,

    install_requires=load_requirements('pip-requires'),

)
<|endoftext|>


<commit_before>
import codecs
from setuptools import setup

url='http://github.com/mila/django-urldecorators/tree/master'

try:
    long_description = codecs.open('README.rst', "r", "utf-8").read()
except IOError:
    long_description = "See %s" % url

setup(
    name='django-urldecorators',
    version='0.7.dev',
    description='Django-urldecorators is a reusable Django application which allows apply '
                'view decorators and middleware components depending on requested url.',
    author='Miloslav Pojman',
    author_email='miloslav.pojman@gmail.com',
    url=url,
    packages=['urldecorators', 'urldecorators.tests'],
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
    long_description=long_description,
)
<commit_msg>Final release to publish message that this project is archived.<commit_after>
import codecs
from setuptools import setup

url='http://github.com/mila/django-urldecorators/tree/master'

try:
    long_description = codecs.open('README.rst', "r", "utf-8").read()
except IOError:
    long_description = "See %s" % url

setup(
    name='django-urldecorators',
    version='0.7',
    description='Django-urldecorators is a reusable Django application which allows apply '
                'view decorators and middleware components depending on requested url.',
    author='Miloslav Pojman',
    author_email='miloslav.pojman@gmail.com',
    url=url,
    packages=['urldecorators', 'urldecorators.tests'],
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
    long_description=long_description,
)
<|endoftext|>


<commit_before># coding=utf-8
import os
import re
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand

here = os.path.abspath(os.path.dirname(__file__))
try:
    README = open(os.path.join(here, 'README.rst')).read()
    CHANGES = open(os.path.join(here, 'CHANGELOG.txt')).read()
except IOError:
    README = CHANGES = ''

version_re = r"^__version__ = ['\"]([^'\"]+)['\"]$"
version_file = os.path.join(here, 'teamcity', '__init__.py')
version_match = re.search(version_re, open(version_file).read(), re.MULTILINE)
if not version_match:
    raise RuntimeError("Could not find package version in " + version_file)

VERSION = version_match.group(1)

class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

    def finalize_options(self):
        TestCommand.finalize_options(self)
        try:
            self.test_args = []
        except AttributeError:
            # It may fail on some setuptools versions where test_args is a property
            # On that versions "test_args = []" is not required anyway
            pass
        self.test_suite = "fake_suite"

    def run_tests(self):
        import pytest
        import sys
        import os

        if not self.pytest_args:
            self.pytest_args = ["-l", "--junitxml=test-result.xml", "tests/unit-tests", "tests/integration-tests"]
            if sys.version_info >= (2, 6):
                self.pytest_args.append("tests/unit-tests-since-2.6")

        sys.path.append(os.path.join(os.getcwd(), "teamcity"))
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)

if sys.version_info < (2, 7):
    # pip will detect latest compatible version
    tests_require = ['pytest', 'virtualenv']
elif (3,) < sys.version_info < (3, 7):
    # fix compatible version for slowly obsoleting versions
    tests_require = ['pytest==4.6.6', 'virtualenv']
else:
    tests_require = ['pytest', 'virtualenv']

setup(
    name="teamcity-messages",
    version=VERSION,
    author='JetBrains',
    author_email='teamcity-feedback@jetbrains.com',
    description='Send test results ' +
                'to TeamCity continuous integration server from unittest, nose, py.test, twisted trial, behave (Python 2.6+)',
    long_description=README + '\n\n' + CHANGES,
    license='Apache 2.0',
    keywords='unittest teamcity test nose behave flake8 py.test pytest jetbrains',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: Software Development :: Testing'
    ],
    url="https://github.com/JetBrains/teamcity-messages",
    platforms=["any"],

    packages=["teamcity", "twisted.plugins"],
    zip_safe=False,
    package_data={
        'twisted': ['plugins/teamcity_plugin.py'],
    },

    tests_require=tests_require,
    cmdclass={'test': PyTest},

    entry_points={
        'nose.plugins.0.10': [
            'teamcity-report = teamcity.nose_report:TeamcityReport'
        ],

        'pytest11': [
            'pytest-teamcity = teamcity.pytest_plugin',
        ],

        'flake8.extension': [
            'teamcity-messages = teamcity.flake8_plugin:TeamcityReport',
        ],
        'flake8.report': [
            'teamcity-messages = teamcity.flake8_plugin:TeamcityReport',
        ]
    },
)

# Make Twisted regenerate the dropin.cache, if possible.  This is necessary
# because in a site-wide install, dropin.cache cannot be rewritten by
# normal users.
#
# See https://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py-for-a-twistd-twisted-plugin-that-works-with-setuptools
# to discover deepness of this pit.
try:
    from twisted.plugin import IPlugin, getPlugins
    from twisted.python import log

    def my_log_observer(d):
        if d.get("isError", 0):
            import sys

            text = log.textFromEventDict(d)
            sys.stderr.write("\nUnhandled error while refreshing twisted plugins cache: \n")
            sys.stderr.write("    " + text.replace("\n", "\n    "))
    log.startLoggingWithObserver(my_log_observer, setStdout=False)

    list(getPlugins(IPlugin))
except Exception:
    # Do not break module install because of twisted internals
    pass
<commit_msg>ci: better defaults for preserve compatibility (pytest version)<commit_after># coding=utf-8
import os
import re
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand

here = os.path.abspath(os.path.dirname(__file__))
try:
    README = open(os.path.join(here, 'README.rst')).read()
    CHANGES = open(os.path.join(here, 'CHANGELOG.txt')).read()
except IOError:
    README = CHANGES = ''

version_re = r"^__version__ = ['\"]([^'\"]+)['\"]$"
version_file = os.path.join(here, 'teamcity', '__init__.py')
version_match = re.search(version_re, open(version_file).read(), re.MULTILINE)
if not version_match:
    raise RuntimeError("Could not find package version in " + version_file)

VERSION = version_match.group(1)

class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

    def finalize_options(self):
        TestCommand.finalize_options(self)
        try:
            self.test_args = []
        except AttributeError:
            # It may fail on some setuptools versions where test_args is a property
            # On that versions "test_args = []" is not required anyway
            pass
        self.test_suite = "fake_suite"

    def run_tests(self):
        import pytest
        import sys
        import os

        if not self.pytest_args:
            self.pytest_args = ["-l", "--junitxml=test-result.xml", "tests/unit-tests", "tests/integration-tests"]
            if sys.version_info >= (2, 6):
                self.pytest_args.append("tests/unit-tests-since-2.6")

        sys.path.append(os.path.join(os.getcwd(), "teamcity"))
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)

if sys.version_info < (2, 7):
    # pip will detect latest compatible version
    tests_require = ['pytest', 'virtualenv']
elif sys.version_info < (3, 7):
    # fix compatible version for slowly obsoleting versions
    tests_require = ['pytest==4.6.6', 'virtualenv']
else:
    tests_require = ['pytest', 'virtualenv']

setup(
    name="teamcity-messages",
    version=VERSION,
    author='JetBrains',
    author_email='teamcity-feedback@jetbrains.com',
    description='Send test results ' +
                'to TeamCity continuous integration server from unittest, nose, py.test, twisted trial, behave (Python 2.6+)',
    long_description=README + '\n\n' + CHANGES,
    license='Apache 2.0',
    keywords='unittest teamcity test nose behave flake8 py.test pytest jetbrains',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: Software Development :: Testing'
    ],
    url="https://github.com/JetBrains/teamcity-messages",
    platforms=["any"],

    packages=["teamcity", "twisted.plugins"],
    zip_safe=False,
    package_data={
        'twisted': ['plugins/teamcity_plugin.py'],
    },

    tests_require=tests_require,
    cmdclass={'test': PyTest},

    entry_points={
        'nose.plugins.0.10': [
            'teamcity-report = teamcity.nose_report:TeamcityReport'
        ],

        'pytest11': [
            'pytest-teamcity = teamcity.pytest_plugin',
        ],

        'flake8.extension': [
            'teamcity-messages = teamcity.flake8_plugin:TeamcityReport',
        ],
        'flake8.report': [
            'teamcity-messages = teamcity.flake8_plugin:TeamcityReport',
        ]
    },
)

# Make Twisted regenerate the dropin.cache, if possible.  This is necessary
# because in a site-wide install, dropin.cache cannot be rewritten by
# normal users.
#
# See https://stackoverflow.com/questions/7275295/how-do-i-write-a-setup-py-for-a-twistd-twisted-plugin-that-works-with-setuptools
# to discover deepness of this pit.
try:
    from twisted.plugin import IPlugin, getPlugins
    from twisted.python import log

    def my_log_observer(d):
        if d.get("isError", 0):
            import sys

            text = log.textFromEventDict(d)
            sys.stderr.write("\nUnhandled error while refreshing twisted plugins cache: \n")
            sys.stderr.write("    " + text.replace("\n", "\n    "))
    log.startLoggingWithObserver(my_log_observer, setStdout=False)

    list(getPlugins(IPlugin))
except Exception:
    # Do not break module install because of twisted internals
    pass
<|endoftext|>


<commit_before>""" setup.py for smash:the smart shell

    At the moment this setup is very hackish and nonstandard.

    A container virtualenvironment at ~/.smash is forced, and
    system-level installation is not possible.

"""
import os, sys
from glob import glob
from os.path import expanduser
from distutils.core import setup
from distutils.file_util import copy_file
from distutils.command.install import install as _install
from distutils.command.install_data import install_data as _install_data

ope  = os.path.exists
opj  = os.path.join
opd  = os.path.dirname
opil = os.path.islink
ops  = os.path.split

HOME_BIN    = expanduser('~/bin')
HOME_IPY    = os.path.expanduser('~/.smash')
THIS_DIR    = ops(__file__)[:-1]
SHELL_PATH  = os.environ['PATH'].split(':')
SMASH_BIN_DIR = opj(HOME_IPY, 'bin')
SMASH_ACTUAL_SHELL = opj(os.path.sep.join(THIS_DIR),'scripts','smash_actual_shell')
SMASH_INSTALLATION_HOME = HOME_IPY
SMASH_LIB_DST_DIR = opj(SMASH_INSTALLATION_HOME, 'smashlib')
SMASH_PLUGINS_DIR = opj(SMASH_INSTALLATION_HOME, 'plugins')
SMASH_CONFIG_DIR  = opj(SMASH_INSTALLATION_HOME, 'etc')

def run_pip():
    """ """
    pip_cmd  = '{venv_pip} install -r {smash_reqs} --timeout=120'
    req_file = opj(*(THIS_DIR + tuple(['requirements.txt'])))
    venv_pip = opj(HOME_IPY, 'bin', 'pip')
    cmd = pip_cmd.format(venv_pip=venv_pip, smash_reqs=req_file)
    error = os.system(cmd)
    return error

def create_virtualenv(abspath):
    print "Creating virtual-environment: {0}".format(abspath)
    #cmd = 'virtualenv --no-site-packages {0}'
    cmd = 'virtualenv {0}'
    cmd = cmd.format(abspath)
    return os.system(cmd)

if HOME_BIN not in SHELL_PATH:
    raise SystemExit("""
Since SmaSh is beta, scripts are currently installed to ~/bin directory, and I
notice that ~/bin is not in your $PATH.  Until system-wide installation is
implemented, can you add it there please?  Copy-pasta below might help you:

$ export PATH=$PATH:~/bin

""")

if not ope(expanduser('~/.ipython')):
    raise SystemExit("No .ipython folder in your home directory?")

has_virtualenv = not os.system('which virtualenv > /dev/null 2>&1')
if not has_virtualenv:
    raise SystemExit(("No virtualenv found.\n"
                      "Do something like this to install it:\n"
                      "  for debian/ubuntu: "
                      "\"apt-get install python-virtualenv\""))

if not ope(HOME_IPY):
    error = create_virtualenv(HOME_IPY)
    if error: raise SystemExit('Error creating virtual-environment for shell')
    print 'Finished creating virtual-environment.\n'
    pip_error = run_pip()
else: pip_error = run_pip()
if pip_error:
    raise SystemExit('Failed to install requirements into virtual-environment')
else: print 'Finished installing requirements.\n'

class install_data(_install_data):
    def copy_file(self, rel_src, dst_dir):
        """ TODO: DOX """
        if not ope(rel_src):
            err = 'ERROR:\n\t{0} does not exist.\n\ncheck that your working directory is {1}'
            err = err.format(rel_src, THIS_DIR)
            raise SystemExit(err)
        else:
            link = 'sym' if 'develop' in sys.argv else None
            src_fname = ops(rel_src)[-1]
            dst_file = opj(dst_dir, src_fname)
            if ope(dst_file) or opil(dst_file):
                os.remove(dst_file)
            result = copy_file(os.path.abspath(rel_src),
                               dst_dir, link=link, verbose=1)
            return result

class install(_install):
    def run(self):
        return self.run_command('install_data')

class develop(install_data):
    def run(self):
        self.run_command('install_data')

def _from(*args, **kargs):
    """ generates lists of files in the style that setup() expects.
        only python files!  no emacs tmp files or vcs junk allowed.

        NB: expects flatness in python packages (not a recursive dir-walker)
    """
    suffix = kargs.pop('suffix', '*.py')
    return [ opj(*(args + tuple([ ops(x)[-1] ]))) \
             for x in glob(opj(*(args + tuple([suffix])))) ]

LIB      = _from('lib','smashlib')
PLUGINS  = _from('lib','plugins')
CONFIG   = [ opj('config', 'smash.rc'),
             opj('config', 'plugins.json'),
             opj('config', 'projects.json'),
             opj('config', 'editor.json'),
             opj('config', 'bookmarks.json'),
        ]
SCRIPTS = [ opj('scripts', 'smash'),
            opj('scripts', 'current_git_branch'),] + \
          _from('scripts')

kargs = dict(
    name         = 'smash',
    author       = 'mattvonrocketstein, in the gmails',
    version      = '0.1',
    description  = 'smaSh: a smarter shell',
    url          = 'http://github.com/mattvonrocketstein/smash',
    license      = 'MIT',
    keywords     = 'system shell',
    platforms    = 'any',
    zip_safe     = False,
    classifiers = [
        'License :: OSI Approved :: BSD License',
        'Intended Audience :: Developers',
        'Development Status :: 000 - Experimental',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Operating System :: OS Independent', ],
    cmdclass = dict(install      = install,
                    install_data = install_data,
                    develop      = develop,),
    data_files = [
        ( SMASH_PLUGINS_DIR,       PLUGINS ),
        ( HOME_BIN,                SCRIPTS ),
        ( SMASH_CONFIG_DIR,        CONFIG ),
        ( SMASH_BIN_DIR,        [SMASH_ACTUAL_SHELL] ),
        ( SMASH_LIB_DST_DIR,       LIB ),])

IPY_BASE = []
for x in _from('ipython_base', suffix='*'):
    rel = os.path.split(x)[-1]
    if not ope(opj(expanduser('~/.ipython'), rel)):
        IPY_BASE.append(x)
kargs['data_files'] += [ ( HOME_IPY, IPY_BASE), ]

kargs.update(long_description=kargs['description']+'. Read more: '+kargs['url'])
setup(**kargs)
<commit_msg>if it's never been run before, we call ipython initialization from setup.py<commit_after>""" setup.py for smash:the smart shell

    At the moment this setup is very hackish and nonstandard.

    A container virtualenvironment at ~/.smash is forced, and
    system-level installation is not possible.

"""
import os, sys
from glob import glob
from os.path import expanduser
from distutils.core import setup
from distutils.file_util import copy_file
from distutils.command.install import install as _install
from distutils.command.install_data import install_data as _install_data

ope  = os.path.exists
opj  = os.path.join
opd  = os.path.dirname
opil = os.path.islink
ops  = os.path.split

HOME_BIN    = expanduser('~/bin')
HOME_IPY    = os.path.expanduser('~/.smash')
VENV_PIP    = opj(HOME_IPY, 'bin', 'pip')
VENV_PY    = opj(HOME_IPY, 'bin', 'python')
THESE_DIR_COMPONENTS    = ops(__file__)[:-1]
SHELL_PATH  = os.environ['PATH'].split(':')
SMASH_BIN_DIR = opj(HOME_IPY, 'bin')
SMASH_ACTUAL_SHELL = opj(os.path.sep.join(THESE_DIR_COMPONENTS),'scripts','smash_actual_shell')
SMASH_INSTALLATION_HOME = HOME_IPY
SMASH_LIB_DST_DIR = opj(SMASH_INSTALLATION_HOME, 'smashlib')
SMASH_PLUGINS_DIR = opj(SMASH_INSTALLATION_HOME, 'plugins')
SMASH_CONFIG_DIR  = opj(SMASH_INSTALLATION_HOME, 'etc')

def run_pip():
    """ """
    pip_cmd  = '{venv_pip} install -r {smash_reqs} --timeout=120'
    req_file = opj(*(THESE_DIR_COMPONENTS + ('requirements.txt',)))
    cmd = pip_cmd.format(venv_pip=VENV_PIP, smash_reqs=req_file)
    error = os.system(cmd)
    return error

def venv_gen_ipython():
    if not ope(expanduser('~/.ipython')):
        cmd = ("import os; "
               " from IPython.genutils import get_ipython_dir;"
               " from IPython.iplib import user_setup;"
               " rc_suffix = '' if os.name == 'posix' else '.ini';"
               "user_setup(get_ipython_dir(), rc_suffix, mode='install', interactive=False)")
        t = '{python} -c "{cmd}"'.format(python=VENV_PY,cmd=cmd)
        return os.system(t)

def create_virtualenv(abspath):
    print "Creating virtual-environment: {0}".format(abspath)
    #cmd = 'virtualenv --no-site-packages {0}'
    cmd = 'virtualenv {0}'
    cmd = cmd.format(abspath)
    return os.system(cmd)

if HOME_BIN not in SHELL_PATH:
    raise SystemExit("""
Since SmaSh is beta, scripts are currently installed to ~/bin directory, and I
notice that ~/bin is not in your $PATH.  Until system-wide installation is
implemented, can you add it there please?\n\nThe copy-pasta below might help you:

    $ mkdir ~/bin; export PATH=$PATH:~/bin

""")

has_virtualenv = not os.system('which virtualenv > /dev/null 2>&1')
if not has_virtualenv:
    raise SystemExit(("No virtualenv found.\n"
                      "Do something like this to install it:\n"
                      "  for debian/ubuntu: "
                      "\"apt-get install python-virtualenv\""))

if not ope(HOME_IPY):
    print HOME_IPY, 'doesnt exist'
    error = create_virtualenv(HOME_IPY)
    if error: raise SystemExit('Error creating virtual-environment for shell')
    print 'Finished creating virtual-environment.\n'
pip_error = run_pip()
if pip_error:
    raise SystemExit('Failed to install requirements into virtual-environment')
else: print 'Finished installing requirements.\n'
initialize_ipy_error = venv_gen_ipython()
if initialize_ipy_error:
    raise SystemExit('Failed to init ipython using virtual-environment')
else:
    print 'ipython looks good..'

class install_data(_install_data):
    def copy_file(self, rel_src, dst_dir):
        """ TODO: DOX """
        if not ope(rel_src):
            err = 'ERROR:\n\t{0} does not exist.\n\ncheck that your working directory is {1}'
            err = err.format(rel_src, THESE_DIR_COMPONENTS)
            raise SystemExit(err)
        else:
            link = 'sym' if 'develop' in sys.argv else None
            src_fname = ops(rel_src)[-1]
            dst_file = opj(dst_dir, src_fname)
            if ope(dst_file) or opil(dst_file):
                os.remove(dst_file)
            result = copy_file(os.path.abspath(rel_src),
                               dst_dir, link=link, verbose=1)
            return result

class install(_install):
    def run(self):
        return self.run_command('install_data')

class develop(install_data):
    def run(self):
        self.run_command('install_data')

def _from(*args, **kargs):
    """ generates lists of files in the style that setup() expects.
        only python files!  no emacs tmp files or vcs junk allowed.

        NB: expects flatness in python packages (not a recursive dir-walker)
    """
    suffix = kargs.pop('suffix', '*.py')
    return [ opj(*(args + tuple([ ops(x)[-1] ]))) \
             for x in glob(opj(*(args + tuple([suffix])))) ]

LIB      = _from('lib','smashlib')
PLUGINS  = _from('lib','plugins')
CONFIG   = [ opj('config', 'smash.rc'),
             opj('config', 'plugins.json'),
             opj('config', 'projects.json'),
             opj('config', 'editor.json'),
             opj('config', 'bookmarks.json'),
        ]
SCRIPTS = [ opj('scripts', 'smash'),
            opj('scripts', 'current_git_branch'),] + \
          _from('scripts')

kargs = dict(
    name         = 'smash',
    author       = 'mattvonrocketstein, in the gmails',
    version      = '0.1',
    description  = 'smaSh: a smarter shell',
    url          = 'http://github.com/mattvonrocketstein/smash',
    license      = 'MIT',
    keywords     = 'system shell',
    platforms    = 'any',
    zip_safe     = False,
    classifiers = [
        'License :: OSI Approved :: BSD License',
        'Intended Audience :: Developers',
        'Development Status :: 000 - Experimental',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Operating System :: OS Independent', ],
    cmdclass = dict(install      = install,
                    install_data = install_data,
                    develop      = develop,),
    data_files = [
        ( SMASH_PLUGINS_DIR,       PLUGINS ),
        ( HOME_BIN,                SCRIPTS ),
        ( SMASH_CONFIG_DIR,        CONFIG ),
        ( SMASH_BIN_DIR,        [SMASH_ACTUAL_SHELL] ),
        ( SMASH_LIB_DST_DIR,       LIB ),])

IPY_BASE = []
for x in _from('ipython_base', suffix='*'):
    rel = os.path.split(x)[-1]
    if not ope(opj(expanduser('~/.ipython'), rel)):
        IPY_BASE.append(x)
kargs['data_files'] += [ ( HOME_IPY, IPY_BASE), ]

kargs.update(long_description=kargs['description']+'. Read more: '+kargs['url'])
setup(**kargs)
<|endoftext|>


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

import io
import re
import sys

from os.path import join, dirname

from setuptools import setup, find_packages

ROOT = dirname(__file__)

RE_REQUIREMENT = re.compile(r'^\s*-r\s*(?P<filename>.*)$')

RE_MD_CODE_BLOCK = re.compile(r'```(?P<language>[\w+]+)?\n(?P<lines>.*?)```', re.S)
RE_SELF_LINK = re.compile(r'\[([^[\]]*?)\]\[\]')
RE_LINK_TO_URL = re.compile(r'\[(?P<text>.*?)\]\((?P<url>.*?)\)')
RE_LINK_TO_REF = re.compile(r'\[(?P<text>.*?)\]\[(?P<ref>.*?)\]')
RE_LINK_REF = re.compile(r'^\[(?P<key>[^!].*?)\]:\s*(?P<url>.*?)$', re.M)
RE_BADGE = re.compile(r'^\[\!\[(?P<text>.*?)\]\[(?P<badge>.*?)\]\]\[(?P<target>.*?)\]$', re.M)
RE_TITLE = re.compile(r'^(?P<level>#+)\s*(?P<title>.*)$', re.M)
RE_IMAGE = re.compile(r'\!\[(?P<text>.*?)\]\((?P<url>.*?)\)')
RE_CODE = re.compile(r'``([^<>]*?)``')

GITHUB_REPOSITORY = 'https://github.com/apihackers/wagtail-sendinblue'

BADGES_TO_KEEP = ['gitter-badge']

RST_TITLE_LEVELS = ['=', '-', '*']

RST_BADGE = '''\
.. image:: {badge}
    :target: {target}
    :alt: {text}
'''

def md2pypi(filename):
    '''
    Load .md (markdown) file and sanitize it for PyPI.
    Remove unsupported github tags:
     - code-block directive
     - travis ci build badges
    '''
    content = io.open(filename).read()

    for match in RE_MD_CODE_BLOCK.finditer(content):
        rst_block = '\n'.join(
            ['.. code-block:: {language}'.format(**match.groupdict()).replace('markdown', ''), ''] +
            ['    {0}'.format(l) for l in match.group('lines').split('\n')] +
            ['']
        )
        content = content.replace(match.group(0), rst_block)

    refs = dict(RE_LINK_REF.findall(content))
    content = RE_LINK_REF.sub('.. _\g<key>: \g<url>', content)
    content = RE_SELF_LINK.sub('`\g<1>`_', content)
    content = RE_LINK_TO_URL.sub('`\g<text> <\g<url>>`_', content)

    for match in RE_BADGE.finditer(content):
        if match.group('badge') not in BADGES_TO_KEEP:
            content = content.replace(match.group(0), '')
        else:
            params = match.groupdict()
            params['badge'] = refs[match.group('badge')]
            params['target'] = refs[match.group('target')]
            content = content.replace(match.group(0),
                                      RST_BADGE.format(**params))

    for match in RE_IMAGE.finditer(content):
        url = match.group('url')
        if not url.startswith('http'):
            url = '/'.join((GITHUB_REPOSITORY, 'raw/master', url))

        rst_block = '\n'.join([
            '.. image:: {0}'.format(url),
            '  :alt: {0}'.format(match.group('text'))
        ])
        content = content.replace(match.group(0), rst_block)

    # Must occur after badges
    for match in RE_LINK_TO_REF.finditer(content):
        content = content.replace(match.group(0), '`{text} <{url}>`_'.format(
            text=match.group('text'),
            url=refs[match.group('ref')]
        ))

    for match in RE_TITLE.finditer(content):
        underchar = RST_TITLE_LEVELS[len(match.group('level')) - 1]
        title = match.group('title')
        underline = underchar * len(title)

        full_title = '\n'.join((title, underline))
        content = content.replace(match.group(0), full_title)

    content = RE_CODE.sub('``\g<1>``', content)

    return content

long_description = '\n'.join((
    md2pypi('README.md'),
    md2pypi('CHANGELOG.md'),
    ''
))

# Load metadata from  __about__.py file
exec(compile(open('frontmark/__about__.py').read(), 'frontmark/__about__.py', 'exec'))

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)

install_requires = ['pelican>=3.7.0', 'pyyaml', 'commonmark']
setup_requires = ['pytest-runner'] if needs_pytest else []
tests_require = ['pytest']
qa_require = ['pytest-cov', 'flake8']

setup(
    name='pelican-frontmark',
    version=__version__,  # noqa
    description=__description__,  # noqa
    long_description=long_description,
    url='https://github.com/noirbizarre/pelican-frontmark',
    author='Axel Haustant',
    author_email='noirbizarre+github@gmail.com',
    packages=find_packages(),
    include_package_data=True,
    install_requires=install_requires,
    setup_requires=setup_requires,
    tests_require=tests_require,
    extras_require={
        'test': tests_require,
        'qa': qa_require,
    },
    license='MIT',
    keywords='pelican, markdown, frontmatter, commonmark, yaml',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        'Environment :: Web Environment',
        'Operating System :: OS Independent',
        'Intended Audience :: Developers',
        'Topic :: System :: Software Distribution',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'License :: OSI Approved :: MIT License',
    ],
)
<commit_msg>Support Python 3.6<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# flake8: noqa

import io
import re
import sys

from os.path import join, dirname

from setuptools import setup, find_packages

ROOT = dirname(__file__)

RE_REQUIREMENT = re.compile(r'^\s*-r\s*(?P<filename>.*)$')

RE_MD_CODE_BLOCK = re.compile(r'```(?P<language>[\w+]+)?\n(?P<lines>.*?)```', re.S)
RE_SELF_LINK = re.compile(r'\[([^[\]]*?)\]\[\]')
RE_LINK_TO_URL = re.compile(r'\[(?P<text>.*?)\]\((?P<url>.*?)\)')
RE_LINK_TO_REF = re.compile(r'\[(?P<text>.*?)\]\[(?P<ref>.*?)\]')
RE_LINK_REF = re.compile(r'^\[(?P<key>[^!].*?)\]:\s*(?P<url>.*?)$', re.M)
RE_BADGE = re.compile(r'^\[\!\[(?P<text>.*?)\]\[(?P<badge>.*?)\]\]\[(?P<target>.*?)\]$', re.M)
RE_TITLE = re.compile(r'^(?P<level>#+)\s*(?P<title>.*)$', re.M)
RE_IMAGE = re.compile(r'\!\[(?P<text>.*?)\]\((?P<url>.*?)\)')
RE_CODE = re.compile(r'``([^<>]*?)``')

GITHUB_REPOSITORY = 'https://github.com/apihackers/wagtail-sendinblue'

BADGES_TO_KEEP = ['gitter-badge']

RST_TITLE_LEVELS = ['=', '-', '*']

RST_BADGE = '''\
.. image:: {badge}
    :target: {target}
    :alt: {text}
'''

def md2pypi(filename):
    '''
    Load .md (markdown) file and sanitize it for PyPI.
    Remove unsupported github tags:
     - code-block directive
     - travis ci build badges
    '''
    content = io.open(filename).read()

    for match in RE_MD_CODE_BLOCK.finditer(content):
        rst_block = '\n'.join(
            ['.. code-block:: {language}'.format(**match.groupdict()).replace('markdown', ''), ''] +
            ['    {0}'.format(l) for l in match.group('lines').split('\n')] +
            ['']
        )
        content = content.replace(match.group(0), rst_block)

    refs = dict(RE_LINK_REF.findall(content))
    content = RE_LINK_REF.sub('.. _\g<key>: \g<url>', content)
    content = RE_SELF_LINK.sub('`\g<1>`_', content)
    content = RE_LINK_TO_URL.sub('`\g<text> <\g<url>>`_', content)

    for match in RE_BADGE.finditer(content):
        if match.group('badge') not in BADGES_TO_KEEP:
            content = content.replace(match.group(0), '')
        else:
            params = match.groupdict()
            params['badge'] = refs[match.group('badge')]
            params['target'] = refs[match.group('target')]
            content = content.replace(match.group(0),
                                      RST_BADGE.format(**params))

    for match in RE_IMAGE.finditer(content):
        url = match.group('url')
        if not url.startswith('http'):
            url = '/'.join((GITHUB_REPOSITORY, 'raw/master', url))

        rst_block = '\n'.join([
            '.. image:: {0}'.format(url),
            '  :alt: {0}'.format(match.group('text'))
        ])
        content = content.replace(match.group(0), rst_block)

    # Must occur after badges
    for match in RE_LINK_TO_REF.finditer(content):
        content = content.replace(match.group(0), '`{text} <{url}>`_'.format(
            text=match.group('text'),
            url=refs[match.group('ref')]
        ))

    for match in RE_TITLE.finditer(content):
        underchar = RST_TITLE_LEVELS[len(match.group('level')) - 1]
        title = match.group('title')
        underline = underchar * len(title)

        full_title = '\n'.join((title, underline))
        content = content.replace(match.group(0), full_title)

    content = RE_CODE.sub('``\g<1>``', content)

    return content

long_description = '\n'.join((
    md2pypi('README.md'),
    md2pypi('CHANGELOG.md'),
    ''
))

# Load metadata from  __about__.py file
exec(compile(open('frontmark/__about__.py').read(), 'frontmark/__about__.py', 'exec'))

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)

install_requires = ['pelican>=3.7.0', 'pyyaml', 'commonmark']
setup_requires = ['pytest-runner'] if needs_pytest else []
tests_require = ['pytest']
qa_require = ['pytest-cov', 'flake8']

setup(
    name='pelican-frontmark',
    version=__version__,  # noqa
    description=__description__,  # noqa
    long_description=long_description,
    url='https://github.com/noirbizarre/pelican-frontmark',
    author='Axel Haustant',
    author_email='noirbizarre+github@gmail.com',
    packages=find_packages(),
    include_package_data=True,
    install_requires=install_requires,
    setup_requires=setup_requires,
    tests_require=tests_require,
    extras_require={
        'test': tests_require,
        'qa': qa_require,
    },
    license='MIT',
    keywords='pelican, markdown, frontmatter, commonmark, yaml',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        'Environment :: Web Environment',
        'Operating System :: OS Independent',
        'Intended Audience :: Developers',
        'Topic :: System :: Software Distribution',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'License :: OSI Approved :: MIT License',
    ],
)
<|endoftext|>


<commit_before># coding: utf-8

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

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

with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
    long_description = f.read()

setup(
    name='dokkupy',
    version='0.0.3',
    description='Python API and script for dokku',
    long_description=long_description,
    url='https://github.com/fenrrir/dokkupy',
    author=u'Rodrigo Pinheiro Marques de Araújo',
    author_email='fenrrir@gmail.com',
    license='MIT',

    classifiers=[
        'Development Status :: 1 - Planning',
        'Intended Audience :: Developers',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
    ],
    keywords='python dokku',
    packages=['dokkupy'],
    scripts=['dokkupycli'],
    install_requires=['GitPython==2.1.0'],
)
<commit_msg>Atualiza dependência<commit_after># coding: utf-8

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

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

with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
    long_description = f.read()

setup(
    name='dokkupy',
    version='0.0.3',
    description='Python API and script for dokku',
    long_description=long_description,
    url='https://github.com/fenrrir/dokkupy',
    author=u'Rodrigo Pinheiro Marques de Araújo',
    author_email='fenrrir@gmail.com',
    license='MIT',

    classifiers=[
        'Development Status :: 1 - Planning',
        'Intended Audience :: Developers',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
    ],
    keywords='python dokku',
    packages=['dokkupy'],
    scripts=['dokkupycli'],
    install_requires=['GitPython==3.1.3'],
)
<|endoftext|>


<commit_before>from setuptools import setup
import os

version = "0.14"

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
HISTORY = open(os.path.join(here, 'HISTORY.rst')).read()

install_requires = [
    'setuptools',
    'lazy']

try:
    import argparse
    argparse    # make pyflakes happy...
except ImportError:
    install_requires.append('argparse >= 1.1')

setup(
    version=version,
    description="A script allowing to setup Amazon EC2 instances through configuration files.",
    long_description=README + "\n\n" + HISTORY,
    name="mr.awsome",
    author='Florian Schulze',
    author_email='florian.schulze@gmx.net',
    url='http://github.com/fschulze/mr.awsome',
    include_package_data=True,
    zip_safe=False,
    packages=['mr'],
    namespace_packages=['mr'],
    install_requires=install_requires,
    setup_requires=[
        'setuptools-git'],
    entry_points="""
        [console_scripts]
        aws = mr.awsome:aws
        assh = mr.awsome:aws_ssh
        [mr.awsome.plugins]
        plain = mr.awsome.plain:plugin
    """)
<commit_msg>We need to require paramiko ourself now.<commit_after>from setuptools import setup
import os

version = "0.14"

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
HISTORY = open(os.path.join(here, 'HISTORY.rst')).read()

install_requires = [
    'lazy',
    'paramiko',
    'setuptools']

try:
    import argparse
    argparse    # make pyflakes happy...
except ImportError:
    install_requires.append('argparse >= 1.1')

setup(
    version=version,
    description="A script allowing to setup Amazon EC2 instances through configuration files.",
    long_description=README + "\n\n" + HISTORY,
    name="mr.awsome",
    author='Florian Schulze',
    author_email='florian.schulze@gmx.net',
    url='http://github.com/fschulze/mr.awsome',
    include_package_data=True,
    zip_safe=False,
    packages=['mr'],
    namespace_packages=['mr'],
    install_requires=install_requires,
    setup_requires=[
        'setuptools-git'],
    entry_points="""
        [console_scripts]
        aws = mr.awsome:aws
        assh = mr.awsome:aws_ssh
        [mr.awsome.plugins]
        plain = mr.awsome.plain:plugin
    """)
<|endoftext|>


<commit_before># Copyright (c) 2007-2008 The PyAMF Project.
# See LICENSE for details.

from ez_setup import use_setuptools

use_setuptools()

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

class TestCommand(test.test):
    def run_twisted(self):
        from twisted.trial import runner
        from twisted.trial import reporter

        from pyamf.tests import suite

        r = runner.TrialRunner(reporter.VerboseTextReporter)
        r.run(suite())

    def run_tests(self):
        try:
            import twisted

            self.run_twisted()
        except ImportError:
            test.test.run_tests(self)

setup(name = "PyAMF",
    version = "0.1b",
    description = "AMF encoder and decoder for Python",
    url = "http://pyamf.org",
    packages = find_packages(exclude=["*.tests"]),
    install_requires = ["elementtree>=1.2.6", "uuid>=1.30", "fpconst"],
    test_suite = "pyamf.tests.suite",
    license = "MIT License",
    cmdclass = {'test': TestCommand},
    entry_points={
        'console_scripts': [
            'amfinfo = pyamf.scripts.parse_dump:main',
        ],
    },
    extras_require={
        'wsgi': ['wsgiref'],
        'twisted': ['Twisted>=2.5.0'],
        'django': ['Django>=0.96']
    },
    classifiers = [
        "Development Status :: 3 - Alpha",
        "Natural Language :: English",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ])
<commit_msg>Adding fpconst version number<commit_after># Copyright (c) 2007-2008 The PyAMF Project.
# See LICENSE for details.

from ez_setup import use_setuptools

use_setuptools()

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

class TestCommand(test.test):
    def run_twisted(self):
        from twisted.trial import runner
        from twisted.trial import reporter

        from pyamf.tests import suite

        r = runner.TrialRunner(reporter.VerboseTextReporter)
        r.run(suite())

    def run_tests(self):
        try:
            import twisted

            self.run_twisted()
        except ImportError:
            test.test.run_tests(self)

setup(name = "PyAMF",
    version = "0.1b",
    description = "AMF encoder and decoder for Python",
    url = "http://pyamf.org",
    packages = find_packages(exclude=["*.tests"]),
    install_requires = ["elementtree>=1.2.6", "uuid>=1.30", "fpconst>=0.7.2"],
    test_suite = "pyamf.tests.suite",
    license = "MIT License",
    cmdclass = {'test': TestCommand},
    entry_points={
        'console_scripts': [
            'amfinfo = pyamf.scripts.parse_dump:main',
        ],
    },
    extras_require={
        'wsgi': ['wsgiref'],
        'twisted': ['Twisted>=2.5.0'],
        'django': ['Django>=0.96']
    },
    classifiers = [
        "Development Status :: 3 - Alpha",
        "Natural Language :: English",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ])
<|endoftext|>


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

import os
import sys

from setuptools import setup

def get_static_files(path):
    return [os.path.join(dirpath.replace("luigi/", ""), ext)
            for (dirpath, dirnames, filenames) in os.walk(path)
            for ext in ["*.html", "*.js", "*.css", "*.png",
                        "*.eot", "*.svg", "*.ttf", "*.woff", "*.woff2"]]

luigi_package_data = sum(map(get_static_files, ["luigi/static", "luigi/templates"]), [])

readme_note = """\
.. note::

   For the latest source, discussion, etc, please visit the
   `GitHub repository <https://github.com/spotify/luigi>`_\n\n
"""

with open('README.rst') as fobj:
    long_description = readme_note + fobj.read()

install_requires = [
    'tornado>=4.0,<5',
    # https://pagure.io/python-daemon/issue/18
    'python-daemon<2.2.0',
]

if os.environ.get('READTHEDOCS', None) == 'True':
    # So that we can build documentation for luigi.db_task_history and luigi.contrib.sqla
    install_requires.append('sqlalchemy')
    # readthedocs don't like python-daemon, see #1342
    install_requires.remove('python-daemon<3.0')
    install_requires.append('sphinx>=1.4.4')  # Value mirrored in doc/conf.py

if sys.version_info < (3, 4):
    install_requires.append('enum34>1.1.0')

setup(
    name='luigi',
    version='2.7.8',
    description='Workflow mgmgt + task scheduling + dependency resolution',
    long_description=long_description,
    author='The Luigi Authors',
    url='https://github.com/spotify/luigi',
    license='Apache License 2.0',
    packages=[
        'luigi',
        'luigi.configuration',
        'luigi.contrib',
        'luigi.contrib.hdfs',
        'luigi.tools'
    ],
    package_data={
        'luigi': luigi_package_data
    },
    entry_points={
        'console_scripts': [
            'luigi = luigi.cmdline:luigi_run',
            'luigid = luigi.cmdline:luigid',
            'luigi-grep = luigi.tools.luigi_grep:main',
            'luigi-deps = luigi.tools.deps:main',
            'luigi-deps-tree = luigi.tools.deps_tree:main'
        ]
    },
    install_requires=install_requires,
    extras_require={
        'toml': ['toml<2.0.0'],
    },
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: System :: Monitoring',
    ],
)
<commit_msg>Version 2.7.9<commit_after># Copyright (c) 2012 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.

import os
import sys

from setuptools import setup

def get_static_files(path):
    return [os.path.join(dirpath.replace("luigi/", ""), ext)
            for (dirpath, dirnames, filenames) in os.walk(path)
            for ext in ["*.html", "*.js", "*.css", "*.png",
                        "*.eot", "*.svg", "*.ttf", "*.woff", "*.woff2"]]

luigi_package_data = sum(map(get_static_files, ["luigi/static", "luigi/templates"]), [])

readme_note = """\
.. note::

   For the latest source, discussion, etc, please visit the
   `GitHub repository <https://github.com/spotify/luigi>`_\n\n
"""

with open('README.rst') as fobj:
    long_description = readme_note + fobj.read()

install_requires = [
    'tornado>=4.0,<5',
    # https://pagure.io/python-daemon/issue/18
    'python-daemon<2.2.0',
]

if os.environ.get('READTHEDOCS', None) == 'True':
    # So that we can build documentation for luigi.db_task_history and luigi.contrib.sqla
    install_requires.append('sqlalchemy')
    # readthedocs don't like python-daemon, see #1342
    install_requires.remove('python-daemon<3.0')
    install_requires.append('sphinx>=1.4.4')  # Value mirrored in doc/conf.py

if sys.version_info < (3, 4):
    install_requires.append('enum34>1.1.0')

setup(
    name='luigi',
    version='2.7.9',
    description='Workflow mgmgt + task scheduling + dependency resolution',
    long_description=long_description,
    author='The Luigi Authors',
    url='https://github.com/spotify/luigi',
    license='Apache License 2.0',
    packages=[
        'luigi',
        'luigi.configuration',
        'luigi.contrib',
        'luigi.contrib.hdfs',
        'luigi.tools'
    ],
    package_data={
        'luigi': luigi_package_data
    },
    entry_points={
        'console_scripts': [
            'luigi = luigi.cmdline:luigi_run',
            'luigid = luigi.cmdline:luigid',
            'luigi-grep = luigi.tools.luigi_grep:main',
            'luigi-deps = luigi.tools.deps:main',
            'luigi-deps-tree = luigi.tools.deps_tree:main'
        ]
    },
    install_requires=install_requires,
    extras_require={
        'toml': ['toml<2.0.0'],
    },
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: System :: Monitoring',
    ],
)
<|endoftext|>