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

import sys

from setuptools import setup, find_packages
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 pytest
        errcode = pytest.main(self.test_args)
        sys.exit(errcode)

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

requirements = [
    'pycrypto',
    'tornado',
    'ujson'
]

test_requirements = [
    'pytest',
    'pytest-cov',
    'pytest-bdd',
    'pytest-xdist',
    'pytest-watch',
    'tox',
    'detox'
]

setup(
    name='ServiceDiscovery',
    version='0.1.3',
    description='Python Service Discovery and Registry',
    long_description=readme + '\n\n' + history,
    author='Giuseppe Acito',
    author_email='giuseppe.acito@gmail.com',
    url='https://github.com/giupo/ServiceDiscovery',
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    install_requires=requirements,
    license="BSD",
    zip_safe=False,
    keywords='ServiceDiscovery',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
    ],
    cmdclass={
        'test': PyTest
    },
    test_suite='tests',
    tests_require=test_requirements,
    entry_points={
        'console_scripts': [
            'services=ServiceDiscovery.app:main'
        ]
    },
)
<commit_msg>adds psutil to setup.py<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

from setuptools import setup, find_packages
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 pytest
        errcode = pytest.main(self.test_args)
        sys.exit(errcode)

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

requirements = [
    'pycrypto',
    'tornado',
    'ujson',
    'simplejson',
    'psutil'
]

test_requirements = [
    'pytest',
    'pytest-cov',
    'pytest-bdd',
    'pytest-xdist',
    'pytest-watch',
    'tox',
    'detox'
]

setup(
    name='ServiceDiscovery',
    version='0.1.3',
    description='Python Service Discovery and Registry',
    long_description=readme + '\n\n' + history,
    author='Giuseppe Acito',
    author_email='giuseppe.acito@gmail.com',
    url='https://github.com/giupo/ServiceDiscovery',
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    install_requires=requirements,
    license="BSD",
    zip_safe=False,
    keywords='ServiceDiscovery',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
    ],
    cmdclass={
        'test': PyTest
    },
    test_suite='tests',
    tests_require=test_requirements,
    entry_points={
        'console_scripts': [
            'services=ServiceDiscovery.app:main'
        ]
    },
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when running `python
# setup.py test` (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
try:
    import multiprocessing
except ImportError:
    pass

setup(
    name='mock-django',
    version='0.6.8',
    description='',
    license='Apache License 2.0',
    author='David Cramer',
    author_email='dcramer@gmail.com',
    url='http://github.com/dcramer/mock-django',
    packages=find_packages(exclude=['tests', 'tests.*']),
    install_requires=[
        'Django>=1.4',
        'mock',
    ],
    tests_require=[
        'unittest2',
        'nose',
    ],
    test_suite='runtests.collector',
    zip_safe=False,
    include_package_data=True,
)
<commit_msg>Bump version: 0.6.8 -> 0.6.9<commit_after>from setuptools import setup, find_packages

# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when running `python
# setup.py test` (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
try:
    import multiprocessing
except ImportError:
    pass

setup(
    name='mock-django',
    version='0.6.9',
    description='',
    license='Apache License 2.0',
    author='David Cramer',
    author_email='dcramer@gmail.com',
    url='http://github.com/dcramer/mock-django',
    packages=find_packages(exclude=['tests', 'tests.*']),
    install_requires=[
        'Django>=1.4',
        'mock',
    ],
    tests_require=[
        'unittest2',
        'nose',
    ],
    test_suite='runtests.collector',
    zip_safe=False,
    include_package_data=True,
)
<|endoftext|>


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

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

import os

here = os.path.dirname(os.path.abspath(__file__))
f = open(os.path.join(here,  'README.md'))
long_description = f.read().strip()
f.close()

setup(
    name='django-rest-common',
    version='0.0.5',
    author='Sumit Chachra',
    author_email='chachra@tivix.com',
    url='http://github.com/Tivix/django-rest-common',
    description='Common things every Django REST app needs!',
    packages=find_packages(),
    long_description=long_description,
    keywords='django rest common rest-framework api',
    zip_safe=False,
    install_requires=[
        'Django>=1.5.0',
        'djangorestframework>=2.3.13',
    ],
    test_suite='',
    include_package_data=True,
    # cmdclass={},
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<commit_msg>0.0.6 version<commit_after>#!/usr/bin/env python

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

import os

here = os.path.dirname(os.path.abspath(__file__))
f = open(os.path.join(here,  'README.md'))
long_description = f.read().strip()
f.close()

setup(
    name='django-rest-common',
    version='0.0.6',
    author='Sumit Chachra',
    author_email='chachra@tivix.com',
    url='http://github.com/Tivix/django-rest-common',
    description='Common things every Django REST app needs!',
    packages=find_packages(),
    long_description=long_description,
    keywords='django rest common rest-framework api',
    zip_safe=False,
    install_requires=[
        'Django>=1.5.0',
        'djangorestframework>=2.3.13',
    ],
    test_suite='',
    include_package_data=True,
    # cmdclass={},
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<|endoftext|>


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

desc = open('README').read()

setup(name='berry',
      version='0.5',
      description="a minimalist web framework",
      long_description=desc,
      url='http://adeel.github.com/berry',
      author='Adeel Ahmad Khan',
      author_email='adeel2@umbc.edu',
      py_modules=['berry'],
      install_requires=['Paste'],
      classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: MIT License',
      ],
)<commit_msg>updated URL in setup.py<commit_after>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup

desc = open('README').read()

setup(
  name='berry',
  version='0.5',
  description="a minimalist web framework",
  long_description=desc,
  url='http://soundofemptiness.com/projects/berry',
  author='Adeel Ahmad Khan',
  author_email='adeel2@umbc.edu',
  py_modules=['berry'],
  install_requires=['Paste'],
  classifiers=[
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: MIT License',
  ],
)<|endoftext|>


<commit_before>#!/usr/bin/python -tt

# Work around setuptools multi-version silliness
try:
    __requires__ = ['CherryPy < 3', 'Sphinx >= 1.0']
    import pkg_resources
except:
    # And also workaround the workaround being broken inside of a virtualenv
    # *sigh*  setuptools is such a broken implementation
    # When setuptools is imported later, it will see the CherryPy requirement
    # and barf.  So we have to delete it here.
    del __requires__

execfile("fedora/release.py")

from setuptools import find_packages, setup

setup(
    name=NAME,
    version=VERSION,
    description=DESCRIPTION,
    author=AUTHOR,
    author_email=EMAIL,
    license=LICENSE,
    keywords='Fedora Python Webservices',
    url=URL,
    download_url=DOWNLOAD_URL,
    packages=find_packages(),
    py_modules=['flask_fas', 'flask_fas_openid'],
    include_package_data=True,
    # non-setuptools package.  When everything we care about uses
    # python-2.5 distutils we can add these:
    #   for bodhi (koji yum)
    install_requires=['bunch', 'kitchen', 'requests', 'beautifulsoup4'],
    extras_require={
        'tg': ['TurboGears >= 1.0.4', 'SQLAlchemy', 'decorator'],
        'wsgi': ['repoze.who', 'Beaker', 'Paste'],
        'flask': [
            'Flask', 'Flask_WTF', 'python-openid', 'python-openid-teams',
            'python-openid-cla',
        ],
    },
    entry_points={
        'turbogears.identity.provider': (
            'jsonfas = fedora.tg.identity.jsonfasprovider1:JsonFasIdentityProvider [tg]',
            'jsonfas2 = fedora.tg.identity.jsonfasprovider2:JsonFasIdentityProvider [tg]',
            'sqlobjectcsrf = fedora.tg.identity.soprovidercsrf:SqlObjectCsrfIdentityProvider [tg]'),
        'turbogears.visit.manager': (
            'jsonfas = fedora.tg.visit.jsonfasvisit1:JsonFasVisitManager [tg]',
            'jsonfas2 = fedora.tg.visit.jsonfasvisit2:JsonFasVisitManager [tg]'
        ),
    },
    message_extractors={
        'fedora': [
            ('**.py', 'python', None),
            ('tg2/templates/mako/**.mak', 'mako', None),
            ('tg2/templates/genshi/**.html', 'mako', None),
            ('tg/templates/genshi/**.html', 'genshi', None),
        ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: TurboGears',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<commit_msg>Add urllib3 to the setup.py install_requires.<commit_after>#!/usr/bin/python -tt

# Work around setuptools multi-version silliness
try:
    __requires__ = ['CherryPy < 3', 'Sphinx >= 1.0']
    import pkg_resources
except:
    # And also workaround the workaround being broken inside of a virtualenv
    # *sigh*  setuptools is such a broken implementation
    # When setuptools is imported later, it will see the CherryPy requirement
    # and barf.  So we have to delete it here.
    del __requires__

execfile("fedora/release.py")

from setuptools import find_packages, setup

setup(
    name=NAME,
    version=VERSION,
    description=DESCRIPTION,
    author=AUTHOR,
    author_email=EMAIL,
    license=LICENSE,
    keywords='Fedora Python Webservices',
    url=URL,
    download_url=DOWNLOAD_URL,
    packages=find_packages(),
    py_modules=['flask_fas', 'flask_fas_openid'],
    include_package_data=True,
    # non-setuptools package.  When everything we care about uses
    # python-2.5 distutils we can add these:
    #   for bodhi (koji yum)
    install_requires=['bunch', 'kitchen', 'requests', 'beautifulsoup4', 'urllib3'],
    extras_require={
        'tg': ['TurboGears >= 1.0.4', 'SQLAlchemy', 'decorator'],
        'wsgi': ['repoze.who', 'Beaker', 'Paste'],
        'flask': [
            'Flask', 'Flask_WTF', 'python-openid', 'python-openid-teams',
            'python-openid-cla',
        ],
    },
    entry_points={
        'turbogears.identity.provider': (
            'jsonfas = fedora.tg.identity.jsonfasprovider1:JsonFasIdentityProvider [tg]',
            'jsonfas2 = fedora.tg.identity.jsonfasprovider2:JsonFasIdentityProvider [tg]',
            'sqlobjectcsrf = fedora.tg.identity.soprovidercsrf:SqlObjectCsrfIdentityProvider [tg]'),
        'turbogears.visit.manager': (
            'jsonfas = fedora.tg.visit.jsonfasvisit1:JsonFasVisitManager [tg]',
            'jsonfas2 = fedora.tg.visit.jsonfasvisit2:JsonFasVisitManager [tg]'
        ),
    },
    message_extractors={
        'fedora': [
            ('**.py', 'python', None),
            ('tg2/templates/mako/**.mak', 'mako', None),
            ('tg2/templates/genshi/**.html', 'mako', None),
            ('tg/templates/genshi/**.html', 'genshi', None),
        ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: TurboGears',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


<commit_before>import os
from setuptools import setup

LONG_DESCRIPTION = """
The wq command line tool.
"""

def parse_markdown_readme():
    """
    Convert README.md to RST via pandoc, and load into memory
    (fallback to LONG_DESCRIPTION on failure)
    """
    # Attempt to run pandoc on markdown file
    import subprocess
    try:
        subprocess.call(
            ['pandoc', '-t', 'rst', '-o', 'README.rst', 'README.md']
        )
    except OSError:
        return LONG_DESCRIPTION

    # Attempt to load output
    try:
        readme = open(os.path.join(
            os.path.dirname(__file__),
            'README.rst'
        ))
    except IOError:
        return LONG_DESCRIPTION
    return readme.read()

def create_wq_namespace():
    """
    Generate the wq namespace package
    (not checked in, as it technically is the parent of this folder)
    """
    if os.path.isdir("wq"):
        return
    os.makedirs("wq")
    init = open(os.path.join("wq", "__init__.py"), 'w')
    init.write("__import__('pkg_resources').declare_namespace(__name__)")
    init.close()

create_wq_namespace()

setup(
    name='wq.core',
    version='1.0.1-dev',
    author='S. Andrew Sheppard',
    author_email='andrew@wq.io',
    url='https://wq.io/',
    license='MIT',
    packages=['wq', 'wq.core'],
    package_dir={
        'wq.core': '.',
    },
    install_requires=[
        'click<6',
        'PyYAML',
    ],
    namespace_packages=['wq'],
    entry_points='''
       [console_scripts]
       wq=wq.core:wq
       [wq]
       wq.core=wq.core.info
    ''',
    description=LONG_DESCRIPTION.strip(),
    long_description=parse_markdown_readme(),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: JavaScript',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Build Tools',
    ]
)
<commit_msg>v1.1.0<commit_after>import os
from setuptools import setup

LONG_DESCRIPTION = """
The wq command line tool.
"""

def parse_markdown_readme():
    """
    Convert README.md to RST via pandoc, and load into memory
    (fallback to LONG_DESCRIPTION on failure)
    """
    # Attempt to run pandoc on markdown file
    import subprocess
    try:
        subprocess.call(
            ['pandoc', '-t', 'rst', '-o', 'README.rst', 'README.md']
        )
    except OSError:
        return LONG_DESCRIPTION

    # Attempt to load output
    try:
        readme = open(os.path.join(
            os.path.dirname(__file__),
            'README.rst'
        ))
    except IOError:
        return LONG_DESCRIPTION
    return readme.read()

def create_wq_namespace():
    """
    Generate the wq namespace package
    (not checked in, as it technically is the parent of this folder)
    """
    if os.path.isdir("wq"):
        return
    os.makedirs("wq")
    init = open(os.path.join("wq", "__init__.py"), 'w')
    init.write("__import__('pkg_resources').declare_namespace(__name__)")
    init.close()

create_wq_namespace()

setup(
    name='wq.core',
    version='1.1.0',
    author='S. Andrew Sheppard',
    author_email='andrew@wq.io',
    url='https://wq.io/',
    license='MIT',
    packages=['wq', 'wq.core'],
    package_dir={
        'wq.core': '.',
    },
    install_requires=[
        'click<6',
        'PyYAML',
    ],
    namespace_packages=['wq'],
    entry_points='''
       [console_scripts]
       wq=wq.core:wq
       [wq]
       wq.core=wq.core.info
    ''',
    description=LONG_DESCRIPTION.strip(),
    long_description=parse_markdown_readme(),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: JavaScript',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Build Tools',
    ]
)
<|endoftext|>


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

for scheme in INSTALL_SCHEMES.values():
    scheme['data'] = scheme['purelib']

setup(
  include_data_files = True,
  name = 'perceptionmd',
  version = '0.1.2',
  description = 'Human observer tests for radiology',
  author = 'David Volgyes',
  author_email = 'david.volgyes@ieee.org',
  url = 'https://github.com/dvolgyes/perceptionmd',
  packages = ['perceptionmd','perceptionmd/CTTools'],
  scripts=['PerceptionMD.py',],
  data_files = [('perceptionmd', ['LICENSE.txt','perceptionmd/perception.tx']),
		('perceptionmd/widgets', ['perceptionmd/widgets/infoscreen.kv']),
		('perceptionmd/unittests/',['perceptionmd/unittests/travis-example.md'])],
  keywords = ['testing', 'example'],
  classifiers = [],
  license = 'AGPL3',
  install_requires=[
  "cachetools",
  "pydicom",
  "textx",
  "cython",
  "matplotlib",
  "kivy",
  "pycontracts",
  "docutils",
  "pygame",
  ],
)

#  package_dir = {'perceptionmd': 'perceptionmd'},
#  download_url = 'https://github.com/dvolgyes/perceptionmd/archive/0.1.2.tar.gz',
<commit_msg>supporting non-linux tools<commit_after>#!/usr/bin/env python
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
import platform

for scheme in INSTALL_SCHEMES.values():
    scheme['data'] = scheme['purelib']

system = platform.system()

reqs = ['cachetools','pydicom','textx','cython','matplotlib','kivy','pycontracts','docutils','pygame']

if system != 'Linux':
    reqs = ['cachetools','pydicom','textx','cython','matplotlib','kivy','pycontracts','docutils','pygame',
    'kivy.deps.angle','kivy.deps.gstreamer','kivy.deps.sdl2','kivy.deps.glew']

setup(
  include_data_files = True,
  name = 'perceptionmd',
  version = '0.1.2',
  description = 'Human observer tests for radiology',
  author = 'David Volgyes',
  author_email = 'david.volgyes@ieee.org',
  url = 'https://github.com/dvolgyes/perceptionmd',
  packages = ['perceptionmd','perceptionmd/CTTools'],
  scripts=['PerceptionMD.py',],
  data_files = [('perceptionmd', ['LICENSE.txt','perceptionmd/perception.tx']),
                ('perceptionmd/widgets', ['perceptionmd/widgets/infoscreen.kv']),
                ('perceptionmd/unittests/',['perceptionmd/unittests/travis-example.md'])],
  keywords = ['testing', 'example'],
  classifiers = [],
  license = 'AGPL3',
  install_requires=reqs,
#  download_url = 'https://github.com/dvolgyes/perceptionmd/archive/latest.tar.gz',
)

<|endoftext|>


<commit_before>import os
import sys
from shutil import rmtree

from setuptools import setup, Command

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

class PublishCommand(Command):
    """Support setup.py publish."""

    description = 'Build and publish the package.'
    user_options = []

    @staticmethod
    def status(s):
        """Prints things in bold."""
        print('\033[1m{0}\033[0m'.format(s))

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        try:
            self.status('Removing previous builds…')
            rmtree(os.path.join(here, 'dist'))
        except OSError:
            pass

        self.status('Building Source and Wheel (universal) distribution…')
        os.system('{0} setup.py sdist bdist_wheel --universal'.format(
            sys.executable))

        self.status('Uploading the package to PyPi via Twine…')
        os.system('twine upload dist/*')

        sys.exit()

setup(
    name='tifa',
    version='0.3.0',
    packages=['tifa'],
    install_requires=[
        'click==6.7',
        'Jinja2==2.9.6',
        'PyYAML==3.12',
        'voluptuous==0.10.5',
    ],
    tests_require=['pytest==3.2.2'],
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'tifa = tifa.cli:main'
        ]
    },
    url='https://github.com/wddwycc/tifa',
    license='MIT',
    author='duan',
    author_email='wddwyss@gmail.com',
    description='a modern flask scaffolding',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development',
        'Topic :: Software Development :: Code Generators',
    ],
    # $ setup.py publish support.
    cmdclass={
        'publish': PublishCommand,
    },
)
<commit_msg>Bump to 0.3.1<commit_after>import os
import sys
from shutil import rmtree

from setuptools import setup, Command

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

class PublishCommand(Command):
    """Support setup.py publish."""

    description = 'Build and publish the package.'
    user_options = []

    @staticmethod
    def status(s):
        """Prints things in bold."""
        print('\033[1m{0}\033[0m'.format(s))

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        try:
            self.status('Removing previous builds…')
            rmtree(os.path.join(here, 'dist'))
        except OSError:
            pass

        self.status('Building Source and Wheel (universal) distribution…')
        os.system('{0} setup.py sdist bdist_wheel --universal'.format(
            sys.executable))

        self.status('Uploading the package to PyPi via Twine…')
        os.system('twine upload dist/*')

        sys.exit()

setup(
    name='tifa',
    version='0.3.1',
    packages=['tifa'],
    install_requires=[
        'click==6.7',
        'Jinja2==2.9.6',
        'PyYAML==3.12',
        'voluptuous==0.10.5',
    ],
    tests_require=['pytest==3.2.2'],
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'tifa = tifa.cli:main'
        ]
    },
    url='https://github.com/wddwycc/tifa',
    license='MIT',
    author='duan',
    author_email='wddwyss@gmail.com',
    description='a modern flask scaffolding',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development',
        'Topic :: Software Development :: Code Generators',
    ],
    # $ setup.py publish support.
    cmdclass={
        'publish': PublishCommand,
    },
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2013-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenQuake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with OpenQuake. If not, see <http://www.gnu.org/licenses/>.

import os
import re
import sys
from setuptools import setup, find_packages

if sys.version_info < (3, 5):
    sys.exit('Sorry, Python < 3.5 is not supported')

def get_version():
    version_re = r"^__version__\s+=\s+['\"]([^'\"]*)['\"]"
    version = None

    package_init = 'openquake/baselib/__init__.py'
    for line in open(package_init, 'r'):
        version_match = re.search(version_re, line, re.M)
        if version_match:
            version = version_match.group(1)
            break
    else:
        sys.exit('__version__ variable not found in %s' % package_init)

    return version

def get_readme():
    with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),
                           'README.md'), encoding='utf-8') as readme:
        return readme.read()

version = get_version()
readme = get_readme()

url = "https://github.com/gem/oq-engine"

PY_MODULES = ['openquake.commands.__main__']

install_requires = [
    'setuptools',
    'mock >=1.0, <2.1',
    'nose >=1.3, <1.4',
    'h5py >=2.8, <2.9',
    'numpy >=1.14, <1.15',
    'scipy >=1.0.1, <1.1',
    'pyzmq <18.0',
    'psutil >=2.0, <5.5',
    'shapely >=1.3, <1.7',
    'docutils >=0.11, <0.15',
    'decorator >=4.3',
    'django >=1.10, <2.1',
    'matplotlib >=1.5, <2.2',
    'requests >=2.9, <2.19',
    'pyshp ==1.2.3',
    'PyYAML',
]

extras_require = {
    'rtree': ['rtree ==0.8.3'],
    'setproctitle': ["setproctitle"],
    'prctl': ["python-prctl ==1.6.1"],
    'celery':  ["celery >=4.0, <4.2"],
    'pam': ["python-pam", "django-pam"],
    'plotting':  [
        'basemap >=1.0',
        'pyproj >=1.9',
    ],
    'dev':  [
        'flake8 >=3.5, <3.6',
        'pdbpp',
    ]
}

setup(
    name="openquake.engine",
    version=version,
    author="GEM Foundation",
    author_email="devops@openquake.org",
    maintainer='GEM Foundation',
    maintainer_email='devops@openquake.org',
    description=("Computes earthquake hazard and risk."),
    license="AGPL3",
    keywords="earthquake seismic hazard risk",
    url=url,
    long_description=readme,
    long_description_content_type='text/markdown',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'License :: OSI Approved :: GNU Affero General Public License v3',
        'Operating System :: OS Independent',
        'Topic :: Scientific/Engineering',
        'Environment :: Console',
        'Environment :: Web Environment',
    ],
    packages=find_packages(exclude=["qa_tests", "qa_tests.*",
                                    "tools",
                                    "openquake.engine.bin",
                                    "openquake.engine.bin.*"]),
    py_modules=PY_MODULES,
    include_package_data=True,
    package_data={"openquake.engine": [
        "openquake.cfg", "README.md",
        "LICENSE", "CONTRIBUTORS.txt"]},
    namespace_packages=['openquake'],
    install_requires=install_requires,
    extras_require=extras_require,
    entry_points={
        'console_scripts': ['oq = openquake.commands.__main__:oq'],
    },
    test_loader='openquake.baselib.runtests:TestLoader',
    test_suite='openquake.risklib,openquake.commonlib,openquake.calculators',
    zip_safe=False,
    )
<commit_msg>Relax dependencies to use upstream wheels<commit_after># -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2013-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenQuake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with OpenQuake. If not, see <http://www.gnu.org/licenses/>.

import os
import re
import sys
from setuptools import setup, find_packages

if sys.version_info < (3, 5):
    sys.exit('Sorry, Python < 3.5 is not supported')

def get_version():
    version_re = r"^__version__\s+=\s+['\"]([^'\"]*)['\"]"
    version = None

    package_init = 'openquake/baselib/__init__.py'
    for line in open(package_init, 'r'):
        version_match = re.search(version_re, line, re.M)
        if version_match:
            version = version_match.group(1)
            break
    else:
        sys.exit('__version__ variable not found in %s' % package_init)

    return version

def get_readme():
    with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),
                           'README.md'), encoding='utf-8') as readme:
        return readme.read()

version = get_version()
readme = get_readme()

url = "https://github.com/gem/oq-engine"

PY_MODULES = ['openquake.commands.__main__']

install_requires = [
    'setuptools',
    'mock >=1.0, <2.1',
    'nose >=1.3, <1.4',
    'h5py >=2.8, <2.9',
    'numpy >=1.14, <1.15',
    'scipy >=1.0.1, <1.2',
    'pyzmq <18.0',
    'psutil >=2.0, <5.5',
    'shapely >=1.3, <1.7',
    'docutils >=0.11, <0.15',
    'decorator >=4.3',
    'django >=1.10, <2.1',
    'matplotlib >=1.5, <2.3',
    'requests >=2.9, <2.19',
    'pyshp ==1.2.3',
    'PyYAML',
]

extras_require = {
    'rtree': ['rtree ==0.8.3'],
    'setproctitle': ["setproctitle"],
    'prctl': ["python-prctl ==1.6.1"],
    'celery':  ["celery >=4.0, <4.2"],
    'pam': ["python-pam", "django-pam"],
    'plotting':  [
        'basemap >=1.0',
        'pyproj >=1.9',
    ],
    'dev':  [
        'flake8 >=3.5, <3.6',
        'pdbpp',
    ]
}

setup(
    name="openquake.engine",
    version=version,
    author="GEM Foundation",
    author_email="devops@openquake.org",
    maintainer='GEM Foundation',
    maintainer_email='devops@openquake.org',
    description=("Computes earthquake hazard and risk."),
    license="AGPL3",
    keywords="earthquake seismic hazard risk",
    url=url,
    long_description=readme,
    long_description_content_type='text/markdown',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'License :: OSI Approved :: GNU Affero General Public License v3',
        'Operating System :: OS Independent',
        'Topic :: Scientific/Engineering',
        'Environment :: Console',
        'Environment :: Web Environment',
    ],
    packages=find_packages(exclude=["qa_tests", "qa_tests.*",
                                    "tools",
                                    "openquake.engine.bin",
                                    "openquake.engine.bin.*"]),
    py_modules=PY_MODULES,
    include_package_data=True,
    package_data={"openquake.engine": [
        "openquake.cfg", "README.md",
        "LICENSE", "CONTRIBUTORS.txt"]},
    namespace_packages=['openquake'],
    install_requires=install_requires,
    extras_require=extras_require,
    entry_points={
        'console_scripts': ['oq = openquake.commands.__main__:oq'],
    },
    test_loader='openquake.baselib.runtests:TestLoader',
    test_suite='openquake.risklib,openquake.commonlib,openquake.calculators',
    zip_safe=False,
    )
<|endoftext|>


<commit_before>import os
import sys
from glob import glob
from distutils.sysconfig import get_config_var, get_python_inc
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext

import versioneer

class build_ext(_build_ext):
    def finalize_options(self):
        _build_ext.finalize_options(self)
        # Prevent numpy from thinking it is still in its setup process:
        __builtins__.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())

def readme():
    with open("README.rst", "r") as f:
        return(f.read())

version=versioneer.get_version()

with open("src/version.pxi", "w") as f:
     f.writelines([
         "__version__ = " + "\"" + str(version) + "\""
     ])

cython_dep = ["Cython >= 0.23"]
numpy_dep = ["numpy >= 1.7"]
boost_dep = ["boost >= 1.56"]
boost_dep = (boost_dep if sys.argv[1] == "bdist_conda" else [])

setup_requires = cython_dep + numpy_dep
setup_requires = [] if sys.argv[1] == "bdist_conda" else setup_requires
build_requires = setup_requires + boost_dep
install_requires = numpy_dep + boost_dep
tests_require = cython_dep + numpy_dep

include_dirs = [
    os.path.join(os.path.dirname(os.path.abspath(__file__)), "include"),
    os.path.dirname(get_python_inc()),
    get_python_inc()
]
library_dirs = [get_config_var("LIBDIR")]
sources = glob("src/*.pxd") + glob("src/*.pyx") + glob("src/*.cpp")
libraries = ["boost_container"]
extra_compile_args = ["-std=c++11"]
extra_compile_args += ["-mmacosx-version-min=10.7", "-stdlib=libc++"] if sys.platform == "darwin" else []

setup(
    name="rank_filter",
    version=version,
    description = "A simple python module containing an in-place linear rank filter optimized in C++.",
    long_description=readme(),
    platforms=['Linux'],
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: C++',
        'Programming Language :: Cython',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries'
    ],
    author="John Kirkham",
    author_email="kirkhamj@janelia.hhmi.org",
    url="https://github.com/nanshe-org/rank_filter",
    download_url="https://github.com/nanshe-org/rank_filter/archive/v%s.tar.gz" % version,
    cmdclass=dict(
        list(versioneer.get_cmdclass().items()) +
        [
            ('build_ext', build_ext)
        ]
    ),
    setup_requires=setup_requires,
    build_requires=build_requires,
    install_requires=install_requires,
    tests_require=tests_require,
    test_suite="test",
    headers=glob("include/*.hxx"),
    ext_modules=[Extension("rank_filter",
                            sources,
                            include_dirs=include_dirs,
                            library_dirs=library_dirs,
                            libraries=libraries,
                            extra_compile_args=extra_compile_args,
                            language="c++")],
    zip_safe=False
)
<commit_msg>setup.py: Lower case Cython.<commit_after>import os
import sys
from glob import glob
from distutils.sysconfig import get_config_var, get_python_inc
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext

import versioneer

class build_ext(_build_ext):
    def finalize_options(self):
        _build_ext.finalize_options(self)
        # Prevent numpy from thinking it is still in its setup process:
        __builtins__.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())

def readme():
    with open("README.rst", "r") as f:
        return(f.read())

version=versioneer.get_version()

with open("src/version.pxi", "w") as f:
     f.writelines([
         "__version__ = " + "\"" + str(version) + "\""
     ])

cython_dep = ["cython >= 0.23"]
numpy_dep = ["numpy >= 1.7"]
boost_dep = ["boost >= 1.56"]
boost_dep = (boost_dep if sys.argv[1] == "bdist_conda" else [])

setup_requires = cython_dep + numpy_dep
setup_requires = [] if sys.argv[1] == "bdist_conda" else setup_requires
build_requires = setup_requires + boost_dep
install_requires = numpy_dep + boost_dep
tests_require = cython_dep + numpy_dep

include_dirs = [
    os.path.join(os.path.dirname(os.path.abspath(__file__)), "include"),
    os.path.dirname(get_python_inc()),
    get_python_inc()
]
library_dirs = [get_config_var("LIBDIR")]
sources = glob("src/*.pxd") + glob("src/*.pyx") + glob("src/*.cpp")
libraries = ["boost_container"]
extra_compile_args = ["-std=c++11"]
extra_compile_args += ["-mmacosx-version-min=10.7", "-stdlib=libc++"] if sys.platform == "darwin" else []

setup(
    name="rank_filter",
    version=version,
    description = "A simple python module containing an in-place linear rank filter optimized in C++.",
    long_description=readme(),
    platforms=['Linux'],
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: C++',
        'Programming Language :: Cython',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries'
    ],
    author="John Kirkham",
    author_email="kirkhamj@janelia.hhmi.org",
    url="https://github.com/nanshe-org/rank_filter",
    download_url="https://github.com/nanshe-org/rank_filter/archive/v%s.tar.gz" % version,
    cmdclass=dict(
        list(versioneer.get_cmdclass().items()) +
        [
            ('build_ext', build_ext)
        ]
    ),
    setup_requires=setup_requires,
    build_requires=build_requires,
    install_requires=install_requires,
    tests_require=tests_require,
    test_suite="test",
    headers=glob("include/*.hxx"),
    ext_modules=[Extension("rank_filter",
                            sources,
                            include_dirs=include_dirs,
                            library_dirs=library_dirs,
                            libraries=libraries,
                            extra_compile_args=extra_compile_args,
                            language="c++")],
    zip_safe=False
)
<|endoftext|>


<commit_before>from setuptools import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

fastavro = Extension("fastavro", ["fastavro.pyx"])

setup(
    name='fastavro',
    version='0.1.0',
    description='Fast iteration of AVRO files',
    author='Miki Tebeka',
    author_email='miki.tebeka@gmail.com',
    license='MIT',
    url='https://bitbucket.org/tebeka/fastavro',
    ext_modules = [fastavro],
    cmdclass = {'build_ext': build_ext},
)
<commit_msg>dependencies<commit_after>from setuptools import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

fastavro = Extension("fastavro", ["fastavro.pyx"])

setup(
    name='fastavro',
    version='0.1.0',
    description='Fast iteration of AVRO files',
    author='Miki Tebeka',
    author_email='miki.tebeka@gmail.com',
    license='MIT',
    url='https://bitbucket.org/tebeka/fastavro',
    ext_modules=[fastavro],
    cmdclass={'build_ext': build_ext},
    install_requires=['cython'],
)
<|endoftext|>


<commit_before>from setuptools import setup, Command, find_packages

version = '0.1'

#
# integration with py.test for `python setup.py test`
#
tests_require = [
  "py == 1.3.4",
  "WebTest == 1.2.2",
]

class PyTest(Command):
    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import py
        py.cmdline.pytest(py.std.sys.argv[2:])

#
# determine requirements
#
requirements = [
  "WebOb == 1.0.0",
  "WebCore == 1.0.0",
  "simplegeneric == 0.7",
  "Kajiki == 0.3.1",
  "Paste == 1.7.5.1",
  "PasteScript == 1.7.3",
  "formencode == 1.2.2"
]

try:
    import json
except:
    requirements.append("simplejson == 2.1.1")

#
# call setup
#
setup(
    name                 = 'pecan',
    version              = version,
    description          = "A WSGI object-dispatching web framework, in the spirit of TurboGears, only much much smaller, with many fewer dependencies.",
    long_description     = None,
    classifiers          = [],
    keywords             = '',
    author               = 'Jonathan LaCour',
    author_email         = 'jonathan@cleverdevil.org',
    url                  = 'http://github.com/cleverdevil/pecan',
    license              = 'BSD',
    packages             = find_packages(exclude=['ez_setup', 'examples', 'tests']),
    include_package_data = True,
    zip_safe             = False,
    cmdclass             = {'test': PyTest},
    install_requires     = requirements,
    entry_points         = """
    [paste.paster_create_template]
    pecan-base = templates:NewProjectTemplate
    """,
)
<commit_msg>change default requirements from Kajiki to Mako<commit_after>from setuptools import setup, Command, find_packages

version = '0.1'

#
# integration with py.test for `python setup.py test`
#
tests_require = [
  "py == 1.3.4",
  "WebTest == 1.2.2",
]

class PyTest(Command):
    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import py
        py.cmdline.pytest(py.std.sys.argv[2:])

#
# determine requirements
#
requirements = [
  "WebOb == 1.0.0",
  "WebCore == 1.0.0",
  "simplegeneric == 0.7",
  "Mako == 0.3.6",
  "Paste == 1.7.5.1",
  "PasteScript == 1.7.3",
  "formencode == 1.2.2"
]

try:
    import json
except:
    requirements.append("simplejson == 2.1.1")

#
# call setup
#
setup(
    name                 = 'pecan',
    version              = version,
    description          = "A WSGI object-dispatching web framework, in the spirit of TurboGears, only much much smaller, with many fewer dependencies.",
    long_description     = None,
    classifiers          = [],
    keywords             = '',
    author               = 'Jonathan LaCour',
    author_email         = 'jonathan@cleverdevil.org',
    url                  = 'http://github.com/cleverdevil/pecan',
    license              = 'BSD',
    packages             = find_packages(exclude=['ez_setup', 'examples', 'tests']),
    include_package_data = True,
    zip_safe             = False,
    cmdclass             = {'test': PyTest},
    install_requires     = requirements,
    entry_points         = """
    [paste.paster_create_template]
    pecan-base = templates:NewProjectTemplate
    """,
)
<|endoftext|>


<commit_before>#!/usr/bin/python
#
# library for communicating with an isc dhcp server over the omapi protocol
#
# Copyright (C) 2010-2013 Cygnus Networks GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

import distutils.core

distutils.core.setup(name='pypureomapi',
	version='0.4',
	description="ISC DHCP OMAPI protocol implementation in Python",
	long_description="This module grew out of frustration about pyomapi and later pyomapic. The extension modules mentioned can be used to query the ISC DHCP server for information about leases. pyomapic does this job using swig and the static library provided with ISC DHCP. It leaks and has basically no error checking. Adding error checking later turned out to be a maintenance hell with swig, so a pure python implementation for omapi, pypureomapi was born. It can mostly be used as a drop-in replacement for pyomapic.",
	author='Helmut Grohne',
	author_email='h.grohne@cygnusnetworks.de',
	maintainer='Torge Szczepanek',
	maintainer_email='debian@cygnusnetworks.de',
	license='GPLv3',
	url='https://github.com/CygnusNetworks/pypureomapi',
	py_modules=['pypureomapi'],
	classifiers=[
		"Development Status :: 5 - Production/Stable",
		"Intended Audience :: System Administrators",
		"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
		"Programming Language :: Python",
		"Topic :: Internet",
		"Topic :: System :: Networking",
		"Topic :: Software Development :: Libraries :: Python Modules",
		]
	)

<commit_msg>Fix shebang and coding<commit_after>#!/usr/bin/env python
# -*- coding: utf8 -*-
# library for communicating with an isc dhcp server over the omapi protocol
#
# Copyright (C) 2010-2013 Cygnus Networks GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

import distutils.core

distutils.core.setup(name='pypureomapi',
	version='0.4',
	description="ISC DHCP OMAPI protocol implementation in Python",
	long_description="This module grew out of frustration about pyomapi and later pyomapic. The extension modules mentioned can be used to query the ISC DHCP server for information about leases. pyomapic does this job using swig and the static library provided with ISC DHCP. It leaks and has basically no error checking. Adding error checking later turned out to be a maintenance hell with swig, so a pure python implementation for omapi, pypureomapi was born. It can mostly be used as a drop-in replacement for pyomapic.",
	author='Helmut Grohne',
	author_email='h.grohne@cygnusnetworks.de',
	maintainer='Torge Szczepanek',
	maintainer_email='debian@cygnusnetworks.de',
	license='GPLv3',
	url='https://github.com/CygnusNetworks/pypureomapi',
	py_modules=['pypureomapi'],
	classifiers=[
		"Development Status :: 5 - Production/Stable",
		"Intended Audience :: System Administrators",
		"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
		"Programming Language :: Python",
		"Topic :: Internet",
		"Topic :: System :: Networking",
		"Topic :: Software Development :: Libraries :: Python Modules",
		]
	)

<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name="punk",

    version="0.1.1",

    description="Primitives for Uncovering New Knowledge.",
    long_description="Machine Learning pipeline elements.",

    url="https://github.com/NewKnowledge/punk",

    author="New Knowledge",
    author_email="alarcj137@gmail.com",

    license="MIT",

    classifiers=[
        "Development Status :: 3 - Alpha",

        "Intended Audience :: Developers",

        # Pick your license as you wish (should match "license" above)
        "License :: OSI Approved :: MIT License",

        "Programming Language :: Python :: 3.6",
    ],

    keywords="TA1 primitive",

    packages=find_packages(exclude=['tests']),

    install_requires=["numpy", "scikit-learn", "scipy"],

)
<commit_msg>release 1.0.0<commit_after>from setuptools import setup, find_packages

setup(
    name="punk",

    version="1.0.0",

    description="Primitives for Uncovering New Knowledge.",
    long_description="Machine Learning pipeline elements.",

    url="https://github.com/NewKnowledge/punk",

    author="New Knowledge",
    author_email="alarcj137@gmail.com",

    license="MIT",

    classifiers=[
        "Development Status :: 4 - Beta",

        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",

        # Pick your license as you wish (should match "license" above)
        "License :: OSI Approved :: MIT License",

        "Programming Language :: Python :: 3.6",

        "Topic :: Scientific/Engineering :: Artificial Intelligence",
    ],

    keywords="TA1 primitive, feature selection, novelty detection",

    packages=find_packages(exclude=['tests']),

    install_requires=["numpy", "scikit-learn", "scipy"],

)
<|endoftext|>


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

setup(
    name="inbox-sync",
    version="0.4",
    packages=find_packages(),

    install_requires=[
        "gevent>=1.0.1",
        "nylas-production-python>=0.2.0",
        "click>=2.4",
        "cpu_affinity>=0.1.0",
        "pyyaml",
        "SQLAlchemy==1.0.6",
        "alembic>=0.6.4",
        "requests>=2.4.3",
        "html2text>=2014.9.8",
        "pyinstrument>=0.12",
        "PyMySQL>=0.6.2",
        "mysqlclient==1.3.6",
        "setproctitle>=1.1.8",
        "pymongo>=2.5.2",
        "python-dateutil>=2.4",
        "ipython>=1.0.0",
        "enum34==1.0.4",
        "gdata>=2.0.18",
        "simplejson>=3.6.0",
        "icalendar>=3.8.2",
        "simplejson>=3.6.0",
        "imapclient==1.0a0",
        "Flask>=0.10.1",
        "Flask-RESTful==0.3.2",
        "pynacl>=0.2.3",
        "flanker>=0.4.26",
        "httplib2>=0.8",
        "six>=1.8",
        "vobject>=0.8.1c",
        "lxml>=3.4.2",
        "arrow==0.5.4",
        "statsd>=3.1",
        "boto3>=1.1.4",
        "Pympler==0.4.2"
    ],
    dependency_links=[
        # TODO: remove this when IMAPClient 1.0 is out
        "hg+https://bitbucket.org/mjs0/imapclient@d8ea261f28ee29#egg=imapclient-1.0a0",
    ],

    include_package_data=True,
    package_data={
        # "inbox-sync": ["alembic.ini"],
        # If any package contains *.txt or *.rst files, include them:
        # '': ['*.txt', '*.rst'],
        # And include any *.msg files found in the 'hello' package, too:
        # 'hello': ['*.msg'],
    },
    data_files=[("alembic-inbox-sync", ["alembic.ini"]),
                ("alembic-inbox-sync/migrations",
                 filter(os.path.isfile, glob.glob("migrations/*"))),
                ("alembic-inbox-sync/migrations/versions",
                 filter(os.path.isfile, glob.glob("migrations/versions/*")))
                ],

    scripts=['bin/inbox-start',
             'bin/inbox-console',
             'bin/migrate-account',
             'bin/migrate-account-bulk',
             'bin/summary-stats',
             'bin/start-stop-account',
             'bin/inbox-auth',
             'bin/delete-account-data',
             'bin/alive-dead-metrics',
             'bin/create-db',
             'bin/create-test-db',
             'bin/verify-db',
             'bin/migrate-db',
             'bin/inbox-api',
             'bin/get-id',
             'bin/get-object',
             'bin/set-throttled',
             'bin/syncback-service',
             'bin/contact-search-service',
             'bin/contact-search-backfill',
             'bin/contact-search-delete-index',
             ],

    # See:
    # https://pythonhosted.org/setuptools/setuptools.html#dynamic-discovery-of-services-and-plugins
    # https://pythonhosted.org/setuptools/pkg_resources.html#entry-points
    entry_points={
        # See https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation
        # 'console_scripts': [
        #     'inbox-consistency-check = inbox.util.consistency_check.__main__:main',
        # ],

        # See inbox/util/consistency_check/__main__.py
        'inbox.consistency_check_plugins': [
            'list=inbox.util.consistency_check.list:ListPlugin',
            'imap_gm=inbox.util.consistency_check.imap_gm:ImapGmailPlugin',
            'local_gm=inbox.util.consistency_check.local_gm:LocalGmailPlugin',
        ],
    },
    zip_safe=False,
    author="Nylas Team",
    author_email="team@nylas.com",
    description="The Nylas Sync Engine",
    license="AGPLv3",
    keywords="nylas",
    url="https://www.nylas.com",
)
<commit_msg>Add backports.ssl in setup.py.<commit_after>import glob
import os
from setuptools import setup, find_packages

setup(
    name="inbox-sync",
    version="0.4",
    packages=find_packages(),

    install_requires=[
        "gevent>=1.0.1",
        "nylas-production-python>=0.2.0",
        "click>=2.4",
        "cpu_affinity>=0.1.0",
        "pyyaml",
        "SQLAlchemy==1.0.6",
        "alembic>=0.6.4",
        "requests>=2.4.3",
        "html2text>=2014.9.8",
        "pyinstrument>=0.12",
        "PyMySQL>=0.6.2",
        "mysqlclient==1.3.6",
        "setproctitle>=1.1.8",
        "pymongo>=2.5.2",
        "python-dateutil>=2.4",
        "ipython>=1.0.0",
        "enum34==1.0.4",
        "gdata>=2.0.18",
        "simplejson>=3.6.0",
        "icalendar>=3.8.2",
        "simplejson>=3.6.0",
        "imapclient==1.0a0",
        "Flask>=0.10.1",
        "Flask-RESTful==0.3.2",
        "pynacl>=0.2.3",
        "flanker>=0.4.26",
        "httplib2>=0.8",
        "six>=1.8",
        "vobject>=0.8.1c",
        "lxml>=3.4.2",
        "arrow==0.5.4",
        "statsd>=3.1",
        "boto3>=1.1.4",
        "Pympler==0.4.2",
        "backports.ssl>=0.0.7"
    ],
    dependency_links=[
        # TODO: remove this when IMAPClient 1.0 is out
        "hg+https://bitbucket.org/mjs0/imapclient@d8ea261f28ee29#egg=imapclient-1.0a0",
        "git+https://github.com/alekstorm/backports.ssl.git#egg=backports.ssl"
    ],

    include_package_data=True,
    package_data={
        # "inbox-sync": ["alembic.ini"],
        # If any package contains *.txt or *.rst files, include them:
        # '': ['*.txt', '*.rst'],
        # And include any *.msg files found in the 'hello' package, too:
        # 'hello': ['*.msg'],
    },
    data_files=[("alembic-inbox-sync", ["alembic.ini"]),
                ("alembic-inbox-sync/migrations",
                 filter(os.path.isfile, glob.glob("migrations/*"))),
                ("alembic-inbox-sync/migrations/versions",
                 filter(os.path.isfile, glob.glob("migrations/versions/*")))
                ],

    scripts=['bin/inbox-start',
             'bin/inbox-console',
             'bin/migrate-account',
             'bin/migrate-account-bulk',
             'bin/summary-stats',
             'bin/start-stop-account',
             'bin/inbox-auth',
             'bin/delete-account-data',
             'bin/alive-dead-metrics',
             'bin/create-db',
             'bin/create-test-db',
             'bin/verify-db',
             'bin/migrate-db',
             'bin/inbox-api',
             'bin/get-id',
             'bin/get-object',
             'bin/set-throttled',
             'bin/syncback-service',
             'bin/contact-search-service',
             'bin/contact-search-backfill',
             'bin/contact-search-delete-index',
             ],

    # See:
    # https://pythonhosted.org/setuptools/setuptools.html#dynamic-discovery-of-services-and-plugins
    # https://pythonhosted.org/setuptools/pkg_resources.html#entry-points
    entry_points={
        # See https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation
        # 'console_scripts': [
        #     'inbox-consistency-check = inbox.util.consistency_check.__main__:main',
        # ],

        # See inbox/util/consistency_check/__main__.py
        'inbox.consistency_check_plugins': [
            'list=inbox.util.consistency_check.list:ListPlugin',
            'imap_gm=inbox.util.consistency_check.imap_gm:ImapGmailPlugin',
            'local_gm=inbox.util.consistency_check.local_gm:LocalGmailPlugin',
        ],
    },
    zip_safe=False,
    author="Nylas Team",
    author_email="team@nylas.com",
    description="The Nylas Sync Engine",
    license="AGPLv3",
    keywords="nylas",
    url="https://www.nylas.com",
)
<|endoftext|>


<commit_before>import os, platform
from stat import ST_MTIME

from distutils.core import setup
from distutils.extension import Extension

from Cython.Build import cythonize

from glew_pxd import generate_pxd

lib_dir = []

if platform.system() == 'Darwin':
    # find glew.h irrespective of version
    for root, dirs, files in os.walk('/usr/local/Cellar/glew'):
        if 'glew.h' in files:
            glew_header = os.path.join(root,'glew.h')	includes = []
	link_args = []
	libs = ['GLEW']
elif platform.system() == 'Windows':
	glew_header = 'win_glew/gl/glew.h'
	includes = ['win_glew']
	libs = ['glew32', 'openGL32']
	lib_dir = ['win_glew']
	link_args = []
elif platform.system() == 'Linux':
	glew_header = '/usr/include/GL/glew.h'
	includes = ['/usr/include/GL']
	libs = ['GLEW']
	link_args = []

if os.path.isfile('glew.pxd') and os.stat('glew.pxd')[ST_MTIME] > os.stat(glew_header)[ST_MTIME]:
    print "'glew.pxd' is up-to-date."
else:
    print "generating glew.pxd based on '%s'"%glew_header
    generate_pxd(glew_header)

extensions = [
	#first submodule: utils
	Extension(	name="cygl.utils",
				sources=['utils.pyx'],
				include_dirs = includes,
				libraries = libs,
				library_dirs = lib_dir,
				extra_link_args=link_args,
				extra_compile_args=[]),
	Extension(	name="cygl.shader",
				sources=['shader.pyx'],
				include_dirs = includes,
				libraries = libs,
				library_dirs = lib_dir,
				extra_link_args=link_args,
				extra_compile_args=[]),
]

setup( 	name="cygl",
		version = "0.0.1",
		author = 'Moritz Kassner',
		licence = 'MIT',
		#this package shall be called cygl
		packages = ['cygl'],
		# dependencies are in flat dir for submodule integration
		# this way the source and compiled extension will have the same file layout.
		# disutils should treat the files in this dir as being in a dir called cygl.
		package_dir = {'cygl':''},
        exclude_package_data = {'': ['glew_pxd.py'] },
		description = "OpenGL utility functions powered by python. This module can also be used as a submodule for other cython projects that want to use OpenGL.",
		ext_modules = cythonize(extensions)
)
<commit_msg>fixed line break (destroyed syntax)<commit_after>import os, platform
from stat import ST_MTIME

from distutils.core import setup
from distutils.extension import Extension

from Cython.Build import cythonize

from glew_pxd import generate_pxd

lib_dir = []

if platform.system() == 'Darwin':
    # find glew.h irrespective of version
    for root, dirs, files in os.walk('/usr/local/Cellar/glew'):
        if 'glew.h' in files:
            glew_header = os.path.join(root,'glew.h')
    includes = []
    link_args = []
    libs = ['GLEW']
elif platform.system() == 'Windows':
	glew_header = 'win_glew/gl/glew.h'
	includes = ['win_glew']
	libs = ['glew32', 'openGL32']
	lib_dir = ['win_glew']
	link_args = []
elif platform.system() == 'Linux':
	glew_header = '/usr/include/GL/glew.h'
	includes = ['/usr/include/GL']
	libs = ['GLEW']
	link_args = []

if os.path.isfile('glew.pxd') and os.stat('glew.pxd')[ST_MTIME] > os.stat(glew_header)[ST_MTIME]:
    print "'glew.pxd' is up-to-date."
else:
    print "generating glew.pxd based on '%s'"%glew_header
    generate_pxd(glew_header)

extensions = [
	#first submodule: utils
	Extension(	name="cygl.utils",
				sources=['utils.pyx'],
				include_dirs = includes,
				libraries = libs,
				library_dirs = lib_dir,
				extra_link_args=link_args,
				extra_compile_args=[]),
	Extension(	name="cygl.shader",
				sources=['shader.pyx'],
				include_dirs = includes,
				libraries = libs,
				library_dirs = lib_dir,
				extra_link_args=link_args,
				extra_compile_args=[]),
]

setup( 	name="cygl",
		version = "0.0.1",
		author = 'Moritz Kassner',
		licence = 'MIT',
		#this package shall be called cygl
		packages = ['cygl'],
		# dependencies are in flat dir for submodule integration
		# this way the source and compiled extension will have the same file layout.
		# disutils should treat the files in this dir as being in a dir called cygl.
		package_dir = {'cygl':''},
        exclude_package_data = {'': ['glew_pxd.py'] },
		description = "OpenGL utility functions powered by python. This module can also be used as a submodule for other cython projects that want to use OpenGL.",
		ext_modules = cythonize(extensions)
)
<|endoftext|>


<commit_before>import os
from setuptools import setup

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name = "nvpy",
    version = "0.1",
    author = "Charl P. Botha",
    author_email = "cpbotha@vxlabs.com",
    description = "A cross-platform simplenote-syncing note-taking app inspired by nvALT.",
    license = "BSD",
    keywords = "simplenote note-taking tkinter nvalt markdown",
    url = "http://vxlabs.com/software/nvpy",
    packages=['nvpy'],
    long_description=read('README.md'),
    install_requires = ['tkinter'],
    entry_points = {
        'gui_scripts' : ['nvpy = nvpy.nvpy:main']
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: X11 Applications",
        "Environment :: MacOS X",
        "Environment :: Win32 (MS Windows)",
        "Topic :: Utilities",
        "License :: OSI Approved :: BSD License",
    ],
)

<commit_msg>Can't be dependent on tkinter.<commit_after>import os
from setuptools import setup

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name = "nvpy",
    version = "0.1",
    author = "Charl P. Botha",
    author_email = "cpbotha@vxlabs.com",
    description = "A cross-platform simplenote-syncing note-taking app inspired by nvALT.",
    license = "BSD",
    keywords = "simplenote note-taking tkinter nvalt markdown",
    url = "http://vxlabs.com/software/nvpy",
    packages=['nvpy'],
    long_description=read('README.md'),
    install_requires = [],
    entry_points = {
        'gui_scripts' : ['nvpy = nvpy.nvpy:main']
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: X11 Applications",
        "Environment :: MacOS X",
        "Environment :: Win32 (MS Windows)",
        "Topic :: Utilities",
        "License :: OSI Approved :: BSD License",
    ],
)

<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages

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

with open(os.path.join(root, 'README.rst')) as f:
    README = f.read()

setup(
    name='django-badgify',
    version='0.1.3',
    description='Badges app for Django',
    long_description=README,
    author='Gilles Fabio',
    author_email='gilles.fabio@gmail.com',
    url='http://github.com/ulule/django-badgify',
    packages=find_packages(),
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        'Pillow==2.4.0',
        'pytz',
    ],
    tests_require=['coverage', 'RandomWords'],
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Utilities',
    ]
)
<commit_msg>Bump to 0.1.4<commit_after># -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages

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

with open(os.path.join(root, 'README.rst')) as f:
    README = f.read()

setup(
    name='django-badgify',
    version='0.1.4',
    description='Badges app for Django',
    long_description=README,
    author='Gilles Fabio',
    author_email='gilles.fabio@gmail.com',
    url='http://github.com/ulule/django-badgify',
    packages=find_packages(),
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        'Pillow==2.4.0',
        'pytz',
    ],
    tests_require=['coverage', 'RandomWords'],
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Utilities',
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup
import glob
import os

setup(
    name='or-tools',
    version='1.0',
    packages=[
        'src/constraint_solver',
        'src/gen/constraint_solver',
        'src/linear_solver',
        'src/gen/linear_solver',
        'src/graph',
        'src/gen/graph',
        'src/algorithms',
        'src/gen/algorithms',
        ],
    data_files=[('lib', [
                'lib/_pywrapcp.so',
                'lib/_pywraprouting.so',
                'lib/_pywraplp.so',
                'lib/_pywrapknapsack_solver.so',
                'lib/_pywrapgraph.so',
                ]),
                ('or-tools', ['LICENSE-2.0.txt',]),
                (os.path.join('or-tools', 'examples', 'python'),
                 glob.glob(os.path.join('examples', 'python', '*.py'))),
                ('or-tools/data/bacp',
                 glob.glob(os.path.join('data', 'bacp', '*'))),
                ('or-tools/data/cvrptw',
                 glob.glob(os.path.join('data', 'cvrptw', '*'))),
                ('or-tools/data/discrete_tomography',
                 glob.glob(os.path.join('data', 'discrete_tomography', '*'))),
                ('or-tools/data/et_jobshop/jet',
                 glob.glob(os.path.join('data', 'et_jobshop', 'jet', '*'))),
                ('or-tools/data/et_jobshop/dyn',
                 glob.glob(os.path.join('data', 'et_jobshop', 'dyn', '*'))),
                ('or-tools/data/fill_a_pix',
                 glob.glob(os.path.join('data', 'fill_a_pix', '*'))),
                ('or-tools/data/jobshop',
                 glob.glob(os.path.join('data', 'jobshop', '*'))),
                ('or-tools/data/minesweeper',
                 glob.glob(os.path.join('data', 'minesweeper', '*'))),
                ('or-tools/data/multidim_knapsack',
                 glob.glob(os.path.join('data', 'multidim_knapsack', '*'))),
                ('or-tools/data/nonogram_regular',
                 glob.glob(os.path.join('data', 'nonogram_regular', '*'))),
                ('or-tools/data/pdptw',
                 glob.glob(os.path.join('data', 'pdptw', '*'))),
                ('or-tools/data/quasigroup_completion',
                 glob.glob(os.path.join('data', 'quasigroup_completion', '*'))),
                ('or-tools/data/rogo',
                 glob.glob(os.path.join('data', 'rogo', '*'))),
                ('or-tools/data/steel_mill',
                 glob.glob(os.path.join('data', 'steel_mill', '*'))),
                ('or-tools/data/strimko',
                 glob.glob(os.path.join('data', 'strimko', '*'))),
                ('or-tools/data/survo_puzzleX',
                 glob.glob(os.path.join('data', 'survo_puzzle', '*'))),
                ],
    license='Apache 2.0',
    author = "Google Inc",
    author_email = "lperron@google.com",
    description = "Google OR-Tools",
    keywords = "operations research, constraint programming",
    url = "http://code.google.com/p/or-toosl/",
)
<commit_msg>setup files to create python modules<commit_after>from setuptools import setup
from os.path import join as pjoin
from glob import glob as gg

setup(
    name='or-tools',
    version='1.0',
    install_requires = ['google-apputils >= 0.3'],
    dependency_links = ['http://google-apputils-python.googlecode.com/files/'],
    packages=[
        pjoin('src', 'constraint_solver'),
        pjoin('src', 'gen', 'constraint_solver'),
        pjoin('src', 'linear_solver'),
        pjoin('src', 'gen', 'linear_solver'),
        pjoin('src', 'graph'),
        pjoin('src', 'gen', 'graph'),
        pjoin('src', 'algorithms'),
        pjoin('src', 'gen', 'algorithms'),
        ],
    data_files=[('lib', [
                pjoin('lib', '_pywrapcp.so'),
                pjoin('lib', '_pywraprouting.so'),
                pjoin('lib', '_pywraplp.so'),
                pjoin('lib', '_pywrapknapsack_solver.so'),
                pjoin('lib', '_pywrapgraph.so'),
                ]),
                ('or-tools', ['LICENSE-2.0.txt',]),
                (pjoin('or-tools', 'examples', 'python'),
                 gg(pjoin('examples', 'python', '*.py'))),
                (pjoin('or-tools', 'data', 'bacp'),
                 gg(pjoin('data', 'bacp', '*'))),
                (pjoin('or-tools', 'data', 'cvrptw'),
                 gg(pjoin('data', 'cvrptw', '*'))),
                (pjoin('or-tools', 'data', 'discrete_tomography'),
                 gg(pjoin('data', 'discrete_tomography', '*'))),
                (pjoin('or-tools', 'data', 'et_jobshop', 'jet'),
                 gg(pjoin('data', 'et_jobshop', 'jet', '*'))),
                (pjoin('or-tools', 'data', 'et_jobshop', 'dyn'),
                 gg(pjoin('data', 'et_jobshop', 'dyn', '*'))),
                (pjoin('or-tools', 'data', 'fill_a_pix'),
                 gg(pjoin('data', 'fill_a_pix', '*'))),
                (pjoin('or-tools', 'data', 'jobshop'),
                 gg(pjoin('data', 'jobshop', '*'))),
                (pjoin('or-tools', 'data', 'minesweeper'),
                 gg(pjoin('data', 'minesweeper', '*'))),
                (pjoin('or-tools', 'data', 'multidim_knapsack'),
                 gg(pjoin('data', 'multidim_knapsack', '*'))),
                (pjoin('or-tools', 'data', 'nonogram_regular'),
                 gg(pjoin('data', 'nonogram_regular', '*'))),
                (pjoin('or-tools', 'data', 'pdptw'),
                 gg(pjoin('data', 'pdptw', '*'))),
                (pjoin('or-tools', 'data', 'quasigroup_completion'),
                 gg(pjoin('data', 'quasigroup_completion', '*'))),
                (pjoin('or-tools', 'data', 'rogo'),
                 gg(pjoin('data', 'rogo', '*'))),
                (pjoin('or-tools', 'data', 'steel_mill'),
                 gg(pjoin('data', 'steel_mill', '*'))),
                (pjoin('or-tools', 'data', 'strimko'),
                 gg(pjoin('data', 'strimko', '*'))),
                (pjoin('or-tools', 'data', 'survo_puzzleX'),
                 gg(pjoin('data', 'survo_puzzle', '*'))),
                ],
    license='Apache 2.0',
    author = "Google Inc",
    author_email = "lperron@google.com",
    description = "Google OR-Tools",
    keywords = ("operations research, constraint programming, " +
                "linear programming"),
    url = "http://code.google.com/p/or-tools/",
)
<|endoftext|>


<commit_before>from os.path import dirname, join
from setuptools import setup

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

setup(name = 'asm2d',
      version = '0.1.3',
      description = 'An assembler for the 68112D microprocessor',
      long_description = fread('README.rst'),
      url = 'https://github.com/tapichu/asm2d',
      author = 'Eduardo Lopez Biagi',
      author_email = 'eduardo.biagi@gmail.com',
      license = 'BSD',
      packages = ['asm2d'],
      install_requires = ['ply', 'bitstring'],
      classifiers = [
          'Development Status :: 3 - Alpha',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python :: 2.7',
          'Topic :: Software Development :: Assemblers',
      ],
      keywords = 'asm2d 6811 68HC11 68112d assembler',
      entry_points = {
          'console_scripts': ['asm2d=asm2d.assembler:main'],
      },
      zip_safe = False)
<commit_msg>Version 0.1.4<commit_after>from os.path import dirname, join
from setuptools import setup

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

setup(name = 'asm2d',
      version = '0.1.4',
      description = 'An assembler for the 68112D microprocessor',
      long_description = fread('README.rst'),
      url = 'https://github.com/tapichu/asm2d',
      author = 'Eduardo Lopez Biagi',
      author_email = 'eduardo.biagi@gmail.com',
      license = 'BSD',
      packages = ['asm2d'],
      install_requires = ['ply', 'bitstring'],
      classifiers = [
          'Development Status :: 3 - Alpha',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python :: 2.7',
          'Topic :: Software Development :: Assemblers',
      ],
      keywords = 'asm2d 6811 68HC11 68112d assembler',
      entry_points = {
          'console_scripts': ['asm2d=asm2d.assembler:main'],
      },
      zip_safe = False)
<|endoftext|>


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

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

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

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

setup(
    name='class_namespaces',

    version='0.5.3',

    description='Class Namespaces',
    long_description=LONG_DESCRIPTION,

    url='https://github.com/mwchase/class-namespaces',

    author='Max Woerner Chase',
    author_email='max.chase@gmail.com',

    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries',

        'License :: OSI Approved :: MIT License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],

    keywords='class namespaces',

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

    extras_require={
        'test': ['coverage', 'pytest'],
    },
)
<commit_msg>Bump version.<commit_after>"""A setuptools based setup module."""

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

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

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

setup(
    name='class_namespaces',

    version='0.5.4',

    description='Class Namespaces',
    long_description=LONG_DESCRIPTION,

    url='https://github.com/mwchase/class-namespaces',

    author='Max Woerner Chase',
    author_email='max.chase@gmail.com',

    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries',

        'License :: OSI Approved :: MIT License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],

    keywords='class namespaces',

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

    extras_require={
        'test': ['coverage', 'pytest'],
    },
)
<|endoftext|>


<commit_before>from setuptools import setup

from gitflow import const

def load_requirements(file):
    with open(file) as dependency_file:
        return list(filter(lambda line: len(line),
                           [line.split('#')[0].strip() for line in dependency_file.readlines()]
                           ))

setup(name='gitflow',
      version=const.VERSION,
      description='Git Flow',
      url='http://www.abacus.ch',
      author='Samuel Oggier',
      author_email='samuel.oggier@gmail.com',
      license='MIT',
      python_requires=">=3.0",
      packages=['gitflow', 'gitflow.procedures'],
      package_data={'gitflow': ['config.ini']},
      install_requires=load_requirements('requirements.txt'),
      tests_require=load_requirements('test_requirements.txt'),
      zip_safe=False,
      entry_points={
          'console_scripts': [
              'git-flow=gitflow.__main__:main',
          ],
      },
      )
<commit_msg>setup.py: determine module names dynamically<commit_after>import os

from setuptools import setup

from gitflow import const

def load_requirements(file):
    with open(file) as dependency_file:
        return list(filter(lambda line: len(line),
                           [line.split('#')[0].strip() for line in dependency_file.readlines()]
                           ))

def determine_module_names(base_dir):
    return [dirpath.replace(os.sep, '.') for dirpath, dirnames, filenames in os.walk(base_dir)
            if '__init__.py' in filenames]

setup(name='gitflow',
      version=const.VERSION,
      description='Git Flow',
      url='http://www.abacus.ch',
      author='Samuel Oggier',
      author_email='samuel.oggier@gmail.com',
      license='MIT',
      python_requires=">=3.0",
      packages=determine_module_names('gitflow'),
      package_data={'gitflow': ['config.ini']},
      install_requires=load_requirements('requirements.txt'),
      tests_require=load_requirements('test_requirements.txt'),
      zip_safe=False,
      entry_points={
          'console_scripts': [
              'git-flow=gitflow.__main__:main',
          ],
      },
      )
<|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", "gtkhtml_demo.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>Updated.<commit_after>#! /usr/bin/env python
# vi:ts=4:et

# $Id$

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

VERSION = "7.9.8.4"

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=VERSION,
    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", "gtkhtml_demo.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)

<|endoftext|>


<commit_before>from setuptools import setup

with open('README.rst', 'r') as inp:
    long_description = inp.read()

setup(
    name="vex",
    version="0.0.0",
    author="Sasha Hart",
    author_email="s@sashahart.net",
    url="http://github.com/sashahart/vex",
    description="Run commands in a virtualenv",
    license="MIT",
    long_description=long_description,
    keywords="virtualenv virtualenvwrapper workon installation deployment",
    install_requires=['virtualenv'],
    packages=['vex'],
    package_data={'vex': ['shell_configs/*']},
    scripts=['scripts/vex'],
    classifiers=[
        "Intended Audience :: Developers",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Environment :: Console",
        "License :: OSI Approved :: MIT License",
        "Development Status :: 3 - Alpha",
    ]
)
<commit_msg>version bump<commit_after>from setuptools import setup

with open('README.rst', 'r') as inp:
    long_description = inp.read()

setup(
    name="vex",
    version="0.0.1",
    author="Sasha Hart",
    author_email="s@sashahart.net",
    url="http://github.com/sashahart/vex",
    description="Run commands in a virtualenv",
    license="MIT",
    long_description=long_description,
    keywords="virtualenv virtualenvwrapper workon installation deployment",
    install_requires=['virtualenv'],
    packages=['vex'],
    package_data={'vex': ['shell_configs/*']},
    scripts=['scripts/vex'],
    classifiers=[
        "Intended Audience :: Developers",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Environment :: Console",
        "License :: OSI Approved :: MIT License",
        "Development Status :: 3 - Alpha",
    ]
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# Copyright 2012 the rootpy developers
# distributed under the terms of the GNU General Public License

import sys

# check Python version
if sys.version_info < (2, 6):
    raise RuntimeError("rootpy only supports python 2.6 and above")

# check that ROOT can be imported
try:
    import ROOT
except ImportError:
    raise RuntimeError(
        "ROOT cannot be imported. Is ROOT installed with PyROOT enabled?")

# check that we have at least the minimum required version of ROOT
if ROOT.gROOT.GetVersionInt() < 52800:
    raise RuntimeError(
        "rootpy requires at least ROOT 5.28/00; "
        "You have ROOT {0}.".format(ROOT.gROOT.GetVersion()))

from distribute_setup import use_setuptools
use_setuptools()

import os
# Prevent distutils from trying to create hard links
# which are not allowed on AFS between directories.
# This is a hack to force copying.
try:
    del os.link
except AttributeError:
    pass

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

from glob import glob
from os.path import join

local_path = os.path.dirname(os.path.abspath(__file__))
# setup.py can be called from outside the rootpy directory
os.chdir(local_path)
sys.path.insert(0, local_path)

# check for custom args
# we should instead extend distutils...
filtered_args = []
release = False
devscripts = False
for arg in sys.argv:
    if arg == '--release':
        # --release sets the version number before installing
        release = True
    elif arg == '--devscripts':
        devscripts = True
    else:
        filtered_args.append(arg)
sys.argv = filtered_args

if release:
    # write the version to rootpy/info.py
    version = open('version.txt', 'r').read().rstrip()
    import shutil
    shutil.move('rootpy/info.py', 'info.tmp')
    dev_info = ''.join(open('info.tmp', 'r').readlines())
    open('rootpy/info.py', 'w').write(
        dev_info.replace(
            "version_info('dev')",
            "version_info('{0}')".format(version)))

execfile('rootpy/info.py')
if 'install' in sys.argv:
    print __doc__

scripts = glob('scripts/*')
if __version__ == 'dev' and devscripts:
    scripts.extend(glob('devscripts/*'))

def strip_comments(l):
    return l.split('#', 1)[0].strip()

def reqs(*f):
    return list(filter(None, [strip_comments(l) for l in open(
        os.path.join(os.getcwd(), 'requirements', *f)).readlines()]))

def is_package(path):
    return (
        os.path.isdir(path) and
        os.path.isfile(os.path.join(path, '__init__.py')))

def find_packages(path='.', base=''):
    """ Find all packages in path """
    packages = {}
    for item in os.listdir(path):
        dirpath = os.path.join(path, item)
        if is_package(dirpath):
            if base:
                module_name = '{base}.{item}'.format(base=base, item=item)
            else:
                module_name = item
            packages[module_name] = dirpath
            packages.update(find_packages(dirpath, module_name))
    return packages

packages = find_packages()

setup(
    name='rootpy',
    version=__version__,
    description="A pythonic layer on top of the "
                "ROOT framework's PyROOT bindings.",
    long_description=''.join(open('README.rst').readlines()[7:]),
    author='the rootpy developers',
    author_email='rootpy-dev@googlegroups.com',
    license='GPLv3',
    url=__url__,
    download_url=__download_url__,
    package_dir=packages,
    packages=packages.keys(),
    extras_require={
        'tables': reqs('tables.txt'),
        'array': reqs('array.txt'),
        'matplotlib': reqs('matplotlib.txt'),
        'roosh': reqs('roosh.txt'),
        'stats': reqs('stats.txt'),
        },
    scripts=scripts,
    entry_points={
        'console_scripts': [
            'root2hdf5 = rootpy.root2hdf5:main',
            'roosh = rootpy.roosh:main',
            ]
        },
    package_data={'': [
        'etc/*',
        'testdata/*.root',
        'testdata/*.txt',
        'tests/test_compiled.cxx',
        ]},
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Topic :: Utilities',
        'Operating System :: POSIX :: Linux',
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License (GPL)'
    ])

if release:
    # revert rootpy/info.py
    shutil.move('info.tmp', 'rootpy/info.py')
<commit_msg>ROOT: ignore command-line args in setup.py<commit_after>#!/usr/bin/env python
# Copyright 2012 the rootpy developers
# distributed under the terms of the GNU General Public License

import sys

# check Python version
if sys.version_info < (2, 6):
    raise RuntimeError("rootpy only supports python 2.6 and above")

# check that ROOT can be imported
try:
    import ROOT
except ImportError:
    raise RuntimeError(
        "ROOT cannot be imported. Is ROOT installed with PyROOT enabled?")

ROOT.PyConfig.IgnoreCommandLineOptions = True

# check that we have at least the minimum required version of ROOT
if ROOT.gROOT.GetVersionInt() < 52800:
    raise RuntimeError(
        "rootpy requires at least ROOT 5.28/00; "
        "You have ROOT {0}.".format(ROOT.gROOT.GetVersion()))

from distribute_setup import use_setuptools
use_setuptools()

import os
# Prevent distutils from trying to create hard links
# which are not allowed on AFS between directories.
# This is a hack to force copying.
try:
    del os.link
except AttributeError:
    pass

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

from glob import glob
from os.path import join

local_path = os.path.dirname(os.path.abspath(__file__))
# setup.py can be called from outside the rootpy directory
os.chdir(local_path)
sys.path.insert(0, local_path)

# check for custom args
# we should instead extend distutils...
filtered_args = []
release = False
devscripts = False
for arg in sys.argv:
    if arg == '--release':
        # --release sets the version number before installing
        release = True
    elif arg == '--devscripts':
        devscripts = True
    else:
        filtered_args.append(arg)
sys.argv = filtered_args

if release:
    # write the version to rootpy/info.py
    version = open('version.txt', 'r').read().rstrip()
    import shutil
    shutil.move('rootpy/info.py', 'info.tmp')
    dev_info = ''.join(open('info.tmp', 'r').readlines())
    open('rootpy/info.py', 'w').write(
        dev_info.replace(
            "version_info('dev')",
            "version_info('{0}')".format(version)))

execfile('rootpy/info.py')
if 'install' in sys.argv:
    print __doc__

scripts = glob('scripts/*')
if __version__ == 'dev' and devscripts:
    scripts.extend(glob('devscripts/*'))

def strip_comments(l):
    return l.split('#', 1)[0].strip()

def reqs(*f):
    return list(filter(None, [strip_comments(l) for l in open(
        os.path.join(os.getcwd(), 'requirements', *f)).readlines()]))

def is_package(path):
    return (
        os.path.isdir(path) and
        os.path.isfile(os.path.join(path, '__init__.py')))

def find_packages(path='.', base=''):
    """ Find all packages in path """
    packages = {}
    for item in os.listdir(path):
        dirpath = os.path.join(path, item)
        if is_package(dirpath):
            if base:
                module_name = '{base}.{item}'.format(base=base, item=item)
            else:
                module_name = item
            packages[module_name] = dirpath
            packages.update(find_packages(dirpath, module_name))
    return packages

packages = find_packages()

setup(
    name='rootpy',
    version=__version__,
    description="A pythonic layer on top of the "
                "ROOT framework's PyROOT bindings.",
    long_description=''.join(open('README.rst').readlines()[7:]),
    author='the rootpy developers',
    author_email='rootpy-dev@googlegroups.com',
    license='GPLv3',
    url=__url__,
    download_url=__download_url__,
    package_dir=packages,
    packages=packages.keys(),
    extras_require={
        'tables': reqs('tables.txt'),
        'array': reqs('array.txt'),
        'matplotlib': reqs('matplotlib.txt'),
        'roosh': reqs('roosh.txt'),
        'stats': reqs('stats.txt'),
        },
    scripts=scripts,
    entry_points={
        'console_scripts': [
            'root2hdf5 = rootpy.root2hdf5:main',
            'roosh = rootpy.roosh:main',
            ]
        },
    package_data={'': [
        'etc/*',
        'testdata/*.root',
        'testdata/*.txt',
        'tests/test_compiled.cxx',
        ]},
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Topic :: Utilities',
        'Operating System :: POSIX :: Linux',
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License (GPL)'
    ])

if release:
    # revert rootpy/info.py
    shutil.move('info.tmp', 'rootpy/info.py')
<|endoftext|>