<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4

# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

import glob
import os
import subprocess
import sys

from setuptools import find_packages
from setuptools.command.sdist import sdist

try:
    import DistUtilsExtra.auto
except ImportError:
    print >> sys.stderr, 'To build nova you need '\
                         'https://launchpad.net/python-distutils-extra'
    sys.exit(1)
assert DistUtilsExtra.auto.__version__ >= '2.18',\
       'needs DistUtilsExtra.auto >= 2.18'

from nova.utils import parse_mailmap, str_dict_replace
from nova import version

if os.path.isdir('.bzr'):
    with open("nova/vcsversion.py", 'w') as version_file:
        vcs_cmd = subprocess.Popen(["bzr", "version-info", "--python"],
                                   stdout=subprocess.PIPE)
        vcsversion = vcs_cmd.communicate()[0]
        version_file.write(vcsversion)

class local_sdist(sdist):
    """Customized sdist hook - builds the ChangeLog file from VC first"""

    def run(self):
        if os.path.isdir('.bzr'):
            # We're in a bzr branch
            env = os.environ.copy()
            env['BZR_PLUGIN_PATH'] = os.path.abspath('./bzrplugins')
            log_cmd = subprocess.Popen(["bzr", "log", "--novalog"],
                                       stdout=subprocess.PIPE, env=env)
            changelog = log_cmd.communicate()[0]
            mailmap = parse_mailmap()
            with open("ChangeLog", "w") as changelog_file:
                changelog_file.write(str_dict_replace(changelog, mailmap))
        sdist.run(self)
nova_cmdclass = {'sdist': local_sdist}

try:
    from sphinx.setup_command import BuildDoc

    class local_BuildDoc(BuildDoc):
        def run(self):
            for builder in ['html', 'man']:
                self.builder = builder
                self.finalize_options()
                BuildDoc.run(self)
    nova_cmdclass['build_sphinx'] = local_BuildDoc

except:
    pass

try:
    from babel.messages import frontend as babel
    nova_cmdclass['compile_catalog'] = babel.compile_catalog
    nova_cmdclass['extract_messages'] = babel.extract_messages
    nova_cmdclass['init_catalog'] = babel.init_catalog
    nova_cmdclass['update_catalog'] = babel.update_catalog
except:
    pass

def find_data_files(destdir, srcdir):
    package_data = []
    files = []
    for d in glob.glob('%s/*' % (srcdir, )):
        if os.path.isdir(d):
            package_data += find_data_files(
                                 os.path.join(destdir, os.path.basename(d)), d)
        else:
            files += [d]
    package_data += [(destdir, files)]
    return package_data

DistUtilsExtra.auto.setup(name='nova',
      version=version.canonical_version_string(),
      description='cloud computing fabric controller',
      author='OpenStack',
      author_email='nova@lists.launchpad.net',
      url='http://www.openstack.org/',
      cmdclass=nova_cmdclass,
      packages=find_packages(exclude=['bin', 'smoketests']),
      include_package_data=True,
      test_suite='nose.collector',
      data_files=find_data_files('share/nova', 'tools'),
      scripts=['bin/nova-ajax-console-proxy',
               'bin/nova-api',
               'bin/nova-compute',
               'bin/nova-console',
               'bin/nova-dhcpbridge',
               'bin/nova-direct-api',
               'bin/nova-import-canonical-imagestore',
               'bin/nova-instancemonitor',
               'bin/nova-logspool',
               'bin/nova-manage',
               'bin/nova-network',
               'bin/nova-objectstore',
               'bin/nova-scheduler',
               'bin/nova-spoolsentry',
               'bin/stack',
               'bin/nova-volume',
               'bin/nova-vncproxy',
               'tools/nova-debug'])
<commit_msg>Refactoring nova.exception.Invalid usage<commit_after># vim: tabstop=4 shiftwidth=4 softtabstop=4

# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

import gettext
import glob
import os
import subprocess
import sys

from setuptools import find_packages
from setuptools.command.sdist import sdist

try:
    import DistUtilsExtra.auto
except ImportError:
    print >> sys.stderr, 'To build nova you need '\
                         'https://launchpad.net/python-distutils-extra'
    sys.exit(1)
assert DistUtilsExtra.auto.__version__ >= '2.18',\
       'needs DistUtilsExtra.auto >= 2.18'

gettext.install('nova', unicode=1)

from nova.utils import parse_mailmap, str_dict_replace
from nova import version

if os.path.isdir('.bzr'):
    with open("nova/vcsversion.py", 'w') as version_file:
        vcs_cmd = subprocess.Popen(["bzr", "version-info", "--python"],
                                   stdout=subprocess.PIPE)
        vcsversion = vcs_cmd.communicate()[0]
        version_file.write(vcsversion)

class local_sdist(sdist):
    """Customized sdist hook - builds the ChangeLog file from VC first"""

    def run(self):
        if os.path.isdir('.bzr'):
            # We're in a bzr branch
            env = os.environ.copy()
            env['BZR_PLUGIN_PATH'] = os.path.abspath('./bzrplugins')
            log_cmd = subprocess.Popen(["bzr", "log", "--novalog"],
                                       stdout=subprocess.PIPE, env=env)
            changelog = log_cmd.communicate()[0]
            mailmap = parse_mailmap()
            with open("ChangeLog", "w") as changelog_file:
                changelog_file.write(str_dict_replace(changelog, mailmap))
        sdist.run(self)
nova_cmdclass = {'sdist': local_sdist}

try:
    from sphinx.setup_command import BuildDoc

    class local_BuildDoc(BuildDoc):
        def run(self):
            for builder in ['html', 'man']:
                self.builder = builder
                self.finalize_options()
                BuildDoc.run(self)
    nova_cmdclass['build_sphinx'] = local_BuildDoc

except:
    pass

try:
    from babel.messages import frontend as babel
    nova_cmdclass['compile_catalog'] = babel.compile_catalog
    nova_cmdclass['extract_messages'] = babel.extract_messages
    nova_cmdclass['init_catalog'] = babel.init_catalog
    nova_cmdclass['update_catalog'] = babel.update_catalog
except:
    pass

def find_data_files(destdir, srcdir):
    package_data = []
    files = []
    for d in glob.glob('%s/*' % (srcdir, )):
        if os.path.isdir(d):
            package_data += find_data_files(
                                 os.path.join(destdir, os.path.basename(d)), d)
        else:
            files += [d]
    package_data += [(destdir, files)]
    return package_data

DistUtilsExtra.auto.setup(name='nova',
      version=version.canonical_version_string(),
      description='cloud computing fabric controller',
      author='OpenStack',
      author_email='nova@lists.launchpad.net',
      url='http://www.openstack.org/',
      cmdclass=nova_cmdclass,
      packages=find_packages(exclude=['bin', 'smoketests']),
      include_package_data=True,
      test_suite='nose.collector',
      data_files=find_data_files('share/nova', 'tools'),
      scripts=['bin/nova-ajax-console-proxy',
               'bin/nova-api',
               'bin/nova-compute',
               'bin/nova-console',
               'bin/nova-dhcpbridge',
               'bin/nova-direct-api',
               'bin/nova-import-canonical-imagestore',
               'bin/nova-instancemonitor',
               'bin/nova-logspool',
               'bin/nova-manage',
               'bin/nova-network',
               'bin/nova-objectstore',
               'bin/nova-scheduler',
               'bin/nova-spoolsentry',
               'bin/stack',
               'bin/nova-volume',
               'bin/nova-vncproxy',
               'tools/nova-debug'])
<|endoftext|>


<commit_before>"""
Aragog
======

A collection of URL routers for Python.
"""
from setuptools import setup

import aragog

setup(
    name="aragog",
    description="A collection of python URL routers.",
    url="https://github.com/bramwelt/aragog",
    version=".".join(aragog.__version__),
    author="Trevor Bramwell",
    author_email="trevor@bramwell.net",
    packages=['aragog'],
    license="Apache2",
    install_requires=[],
    long_description=open("README.rst").read(),
    test_suite="test",
)
<commit_msg>Add initial linting command to setup.py<commit_after>"""
Aragog
======

A collection of URL routers for Python.
"""
from setuptools import Command, setup

import aragog

class lint(Command):
    """
    Run python linting commands: pep8 & pyflakes on source tree
    """
    description = "Lint source code with python linters"
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        pass

setup(
    name="aragog",
    description="A collection of python URL routers.",
    url="https://github.com/bramwelt/aragog",
    version=".".join(aragog.__version__),
    author="Trevor Bramwell",
    author_email="trevor@bramwell.net",
    packages=['aragog'],
    license="Apache2",
    install_requires=[],
    long_description=open("README.rst").read(),
    test_suite="test",
    cmdclass={'lint': lint},
)
<|endoftext|>


<commit_before>from distutils.core import setup
setup(
  name = 'pyPheWAS',
  packages = ['pyPheWAS'], # this must be the same as the name above
  version = '0.1.33',
  description = 'MASI Lab Port of PheWAS into Python',
  author = 'MASI Lab',
  author_email = 'bennett.landman@vanderbilt.edu',
  url = 'https://github.com/bennettlandman/pyPheWAS', # use the URL to the github repo
  download_url = 'https://github.com/bennettlandman/pyPheWAS/tarball/0.1', # I'll explain this in a second
  keywords = ['PheWAS', 'ICD-9', 'EMR'], # arbitrary keywords
  classifiers = [],
  install_requires=['numpy',
	'matplotlib',
	'scipy',
	'pandas',
	'statsmodels',
  'numexpr',
  'bottleneck'
	],
  package_data={
    '':['resources/*.csv']
  },
  scripts=['bin/maximizeControls',
  'bin/pyPhewasLookup',
  'bin/pyPhewasModel',
  'bin/pyPhewasPlot',
  'bin/generateGroups',
  'bin/censorData',
  'bin/convertEventToAge',
  ],
)
<commit_msg>updated version<commit_after>from distutils.core import setup
setup(
  name = 'pyPheWAS',
  packages = ['pyPheWAS'], # this must be the same as the name above
  version = '0.1.34',
  description = 'MASI Lab Port of PheWAS into Python',
  author = 'MASI Lab',
  author_email = 'bennett.landman@vanderbilt.edu',
  url = 'https://github.com/bennettlandman/pyPheWAS', # use the URL to the github repo
  download_url = 'https://github.com/bennettlandman/pyPheWAS/tarball/0.1', # I'll explain this in a second
  keywords = ['PheWAS', 'ICD-9', 'EMR'], # arbitrary keywords
  classifiers = [],
  install_requires=['numpy',
	'matplotlib',
	'scipy',
	'pandas',
	'statsmodels',
  'numexpr',
  'bottleneck'
	],
  package_data={
    '':['resources/*.csv']
  },
  scripts=['bin/maximizeControls',
  'bin/pyPhewasLookup',
  'bin/pyPhewasModel',
  'bin/pyPhewasPlot',
  'bin/generateGroups',
  'bin/censorData',
  'bin/convertEventToAge',
  ],
)
<|endoftext|>


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

import os
from setuptools import setup

# Utility function to read the README file.
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

descrip = ("Simulate light propagation in multilayer thin and/or thick "
           "films using the fresnel equations and transfer matrix "
           "method.")

data_files = ['README.rst','LICENSE.txt','Changes.txt','manual.pdf']

setup(
    name = "tmm",
    version = '0.1.4',
    author = "Steven Byrnes",
    author_email = "steven.byrnes@gmail.com",
    description = descrip,
    license = "MIT",
    keywords = "optics, fresnel, reflection, absorption, photovoltaics, ellipsometry, transfer matrix method",
    url = "http://pypi.python.org/pypi/tmm",
    packages=['tmm'],
    package_data={'tmm':data_files},
    package_dir={'tmm': '.'},
    long_description=read('README.rst'),
    classifiers=[
        "Intended Audience :: Science/Research",
        "Topic :: Scientific/Engineering",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3"],
)
<commit_msg>add examples.ipynb to distribution<commit_after># -*- coding: utf-8 -*-

import os
from setuptools import setup

# Utility function to read the README file.
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

descrip = ("Simulate light propagation in multilayer thin and/or thick "
           "films using the fresnel equations and transfer matrix "
           "method.")

data_files = ['README.rst','LICENSE.txt','Changes.txt','manual.pdf','examples.ipynb']

setup(
    name = "tmm",
    version = '0.1.4',
    author = "Steven Byrnes",
    author_email = "steven.byrnes@gmail.com",
    description = descrip,
    license = "MIT",
    keywords = "optics, fresnel, reflection, absorption, photovoltaics, ellipsometry, transfer matrix method",
    url = "http://pypi.python.org/pypi/tmm",
    packages=['tmm'],
    package_data={'tmm':data_files},
    package_dir={'tmm': '.'},
    long_description=read('README.rst'),
    classifiers=[
        "Intended Audience :: Science/Research",
        "Topic :: Scientific/Engineering",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3"],
)
<|endoftext|>


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

import sys
from setuptools import setup
import warnings
warnings.simplefilter('always', DeprecationWarning)

assert sys.version_info[0] == 3, "Piston requires Python > 3"

warnings.warn(
    "\n\n\n"
    "Deprecation warning"
    "\n"
    "Please use the `piston-cli` package instead of `steem-piston`!"
    "\n\n\n",
    DeprecationWarning
)

__VERSION__ = '0.4.9'

setup(
    name='piston',
    version=__VERSION__,
    description='Command line tool to interface with the STEEM network (deprecated)',
    long_description=open('README.md').read(),
    download_url='https://github.com/xeroc/piston-cli/tarball/' + __VERSION__,
    author='Fabian Schuh',
    author_email='<Fabian@chainsquad.com>',
    maintainer='Fabian Schuh',
    maintainer_email='<Fabian@chainsquad.com>',
    url='http://cli.piston.rocks',
    keywords=['steem', 'library', 'api', 'rpc', 'cli'],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
    ],
    install_requires=[
        "piston-cli>=0.5.0",
    ],
)
<commit_msg>initial deprecation repo<commit_after>#!/usr/bin/env python

import sys
from setuptools import setup
import warnings
warnings.simplefilter('always', DeprecationWarning)

assert sys.version_info[0] == 3, "Piston requires Python > 3"

warnings.warn(
    "\n\n\n"
    "Deprecation warning"
    "\n"
    "Please use the `piston-cli` package instead of `steem-piston`!"
    "\n\n\n",
    DeprecationWarning
)

__VERSION__ = '0.4.9'

setup(
    name='steem-piston',
    version=__VERSION__,
    description='Command line tool to interface with the STEEM network (deprecated)',
    long_description=open('README.md').read(),
    download_url='https://github.com/xeroc/piston-cli/tarball/' + __VERSION__,
    author='Fabian Schuh',
    author_email='Fabian@chainsquad.com',
    maintainer='Fabian Schuh',
    maintainer_email='Fabian@chainsquad.com',
    url='http://cli.piston.rocks',
    keywords=['steem', 'library', 'api', 'rpc', 'cli'],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
    ],
    install_requires=[
        "piston-cli>=0.5.0",
    ],
)
<|endoftext|>


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

from scripts.version import get_git_version

setup(
    name='adhocracy',
    version=get_git_version(),
    description='Policy drafting and decision-making web platform',
    author='Liquid Democracy e.V.',
    author_email='info@liqd.net',
    url='https://github.com/liqd/adhocracy',
    license='GNU Affero General Public License v3',
    classifiers=[
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Operating System :: OS Independent",
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Other Audience",
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Environment :: Web Environment",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "Topic :: Software Development :: Libraries :: Python Modules"
    ],
    long_description='\n'.join([open(f).read() for f in [
        "README.rst",
        "INSTALLATION.rst",
        "CHANGES.txt",
        "AUTHORS.txt",
    ]]),
    install_requires=[
        "adhocracy-Pylons>=1.0.1",
        "WebOb==1.2.3",
        "SQLAlchemy==0.7.10",
        "sqlalchemy-migrate>=0.6",
        "FormEncode>=1.2.5",
        "repoze.who>=2.0",
        "repoze.what==1.0.8",  # 1.0.9 conflicts with repoze.who>=2.0
        "repoze.who.plugins.sa==1.0rc2",
        "repoze.what.plugins.sql==1.0.1",
        "repoze.who-friendlyform==1.0.8",
        "repoze.who-testutil==1.0",
        "python-twitter>=0.6",
        "oauth2",  # undeclared requirement of python-twitter
        "oauth>=1.0.1",
        "rq",
        "redis",
        "ordereddict",
        "babel>=0.9",
        "beautifulsoup>=3.0.7",
        "python-openid>=2.2.4",
        "python-memcached>=1.45",
        "sunburnt==0.6",
        "Pillow",
        "Markdown>=2.3",
        "lxml>=2.2.6",
        "Mako>=0.7.3",
        "MarkupSafe>=0.15",
        "recaptcha-client>=1.0.6",
        "fanstatic >=0.11.2",
        "js.jquery >= 1.7.1,<=1.7.99",
        "js.jquery_qtip >= 1.0.0,<= 1.0.99",
        "js.socialshareprivacy >= 1.3-1",
        "js.jquery_joyride",
        "PasteScript>=1.6.3",
        "setuptools_git >= 0.3",
        "ipaddress>=1.0.3",
        "pytz",
    ],
    setup_requires=["setuptools>=0.6c6",  # fix OS X 10.5.7
                    "PasteScript",
                    "Babel"],
    packages=find_packages('src', exclude=['ez_setup']),
    package_dir={'': 'src'},
    include_package_data=True,
    exclude_package_data={'': ['.gitignore'],
                          'images': ['*.xcf', '*.blend']},
    test_suite='nose.collector',
    extras_require={
        'test': ['zope.testbrowser [wsgi]',
                 'repoze.tm2',
                 'mock >=0.8.0, <=0.8.99',
                 'nose',
                 'nose-cov',
                 'nose-exclude',
                 'cssselect',
                 'decorator',
                 'pep8',]
    },
    package_data={'adhocracy': ['i18n/*/LC_MESSAGES/*.mo'],
                  '': ['RELEASE-VERSION'],
                  },
    message_extractors={'src/adhocracy': [
        ('**.py', 'python', None),
        ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
        ('static/**', 'ignore', None)]},
    zip_safe=False,
    paster_plugins=['PasteScript', 'adhocracy_Pylons'],
    entry_points={
        'paste.app_factory': [
            'main = adhocracy.config.middleware:make_app'
        ],
        'paste.paster_command': [
            'worker = adhocracy.lib.cli:Worker',
            'timer = adhocracy.lib.cli:Timer',
            'index = adhocracy.lib.cli:Index'
        ],
        'paste.app_install': [
            'main = pylons.util:PylonsInstaller'
        ],
        'fanstatic.libraries': [
            'stylesheets = adhocracy.static:stylesheets_library',
            'yaml = adhocracy.static:yaml_library',
            'autocomplete = adhocracy.static:autocomplete_library',
            'placeholder = adhocracy.static:placeholder_library',
            'jquerytools = adhocracy.static:jquerytools_library',
            'knockout = adhocracy.static:knockout_library',
            'misc = adhocracy.static:misc_library',
            'adhocracy = adhocracy.static:adhocracy_library',
            'bootstrap = adhocracy.static:bootstrap_library',
        ],
        'nose.plugins': [
            'pylons = pylons.test:PylonsPlugin',
        ]

    }
)
<commit_msg>Extract i18n messages from templates/**.txt as well<commit_after>try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

from scripts.version import get_git_version

setup(
    name='adhocracy',
    version=get_git_version(),
    description='Policy drafting and decision-making web platform',
    author='Liquid Democracy e.V.',
    author_email='info@liqd.net',
    url='https://github.com/liqd/adhocracy',
    license='GNU Affero General Public License v3',
    classifiers=[
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Operating System :: OS Independent",
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Other Audience",
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Environment :: Web Environment",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "Topic :: Software Development :: Libraries :: Python Modules"
    ],
    long_description='\n'.join([open(f).read() for f in [
        "README.rst",
        "INSTALLATION.rst",
        "CHANGES.txt",
        "AUTHORS.txt",
    ]]),
    install_requires=[
        "adhocracy-Pylons>=1.0.1",
        "WebOb==1.2.3",
        "SQLAlchemy==0.7.10",
        "sqlalchemy-migrate>=0.6",
        "FormEncode>=1.2.5",
        "repoze.who>=2.0",
        "repoze.what==1.0.8",  # 1.0.9 conflicts with repoze.who>=2.0
        "repoze.who.plugins.sa==1.0rc2",
        "repoze.what.plugins.sql==1.0.1",
        "repoze.who-friendlyform==1.0.8",
        "repoze.who-testutil==1.0",
        "python-twitter>=0.6",
        "oauth2",  # undeclared requirement of python-twitter
        "oauth>=1.0.1",
        "rq",
        "redis",
        "ordereddict",
        "babel>=0.9",
        "beautifulsoup>=3.0.7",
        "python-openid>=2.2.4",
        "python-memcached>=1.45",
        "sunburnt==0.6",
        "Pillow",
        "Markdown>=2.3",
        "lxml>=2.2.6",
        "Mako>=0.7.3",
        "MarkupSafe>=0.15",
        "recaptcha-client>=1.0.6",
        "fanstatic >=0.11.2",
        "js.jquery >= 1.7.1,<=1.7.99",
        "js.jquery_qtip >= 1.0.0,<= 1.0.99",
        "js.socialshareprivacy >= 1.3-1",
        "js.jquery_joyride",
        "PasteScript>=1.6.3",
        "setuptools_git >= 0.3",
        "ipaddress>=1.0.3",
        "pytz",
    ],
    setup_requires=["setuptools>=0.6c6",  # fix OS X 10.5.7
                    "PasteScript",
                    "Babel"],
    packages=find_packages('src', exclude=['ez_setup']),
    package_dir={'': 'src'},
    include_package_data=True,
    exclude_package_data={'': ['.gitignore'],
                          'images': ['*.xcf', '*.blend']},
    test_suite='nose.collector',
    extras_require={
        'test': ['zope.testbrowser [wsgi]',
                 'repoze.tm2',
                 'mock >=0.8.0, <=0.8.99',
                 'nose',
                 'nose-cov',
                 'nose-exclude',
                 'cssselect',
                 'decorator',
                 'pep8',]
    },
    package_data={'adhocracy': ['i18n/*/LC_MESSAGES/*.mo'],
                  '': ['RELEASE-VERSION'],
                  },
    message_extractors={'src/adhocracy': [
        ('**.py', 'python', None),
        ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
        ('templates/**.txt', 'mako', {'input_encoding': 'utf-8'}),
        ('static/**', 'ignore', None)]},
    zip_safe=False,
    paster_plugins=['PasteScript', 'adhocracy_Pylons'],
    entry_points={
        'paste.app_factory': [
            'main = adhocracy.config.middleware:make_app'
        ],
        'paste.paster_command': [
            'worker = adhocracy.lib.cli:Worker',
            'timer = adhocracy.lib.cli:Timer',
            'index = adhocracy.lib.cli:Index'
        ],
        'paste.app_install': [
            'main = pylons.util:PylonsInstaller'
        ],
        'fanstatic.libraries': [
            'stylesheets = adhocracy.static:stylesheets_library',
            'yaml = adhocracy.static:yaml_library',
            'autocomplete = adhocracy.static:autocomplete_library',
            'placeholder = adhocracy.static:placeholder_library',
            'jquerytools = adhocracy.static:jquerytools_library',
            'knockout = adhocracy.static:knockout_library',
            'misc = adhocracy.static:misc_library',
            'adhocracy = adhocracy.static:adhocracy_library',
            'bootstrap = adhocracy.static:bootstrap_library',
        ],
        'nose.plugins': [
            'pylons = pylons.test:PylonsPlugin',
        ]

    }
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name="Lexos",
    version="4.0rc1",
    description="Python/Flask-based website for text analysis workflow.",
    long_description="""TODO""",
    author="WheatonCS/LexomicsResearch",
    url="http://wheatoncollege.edu/lexomics/introduction-lexomics/",
    download_url="TODO",
    license="MIT",
    include_package_data=True,
    test_suite="tests",
    install_requires=[
        'flask',
        'numpy',
        'scikit-learn',
        'scipy',
        'beautifulsoup4',
        'lxml',
        'matplotlib',
        'chardet',
        'natsort',
        'plotly',
        'gensim'
    ],
    packages=find_packages(exclude="./test/*")
)
<commit_msg>remove test suite<commit_after>from setuptools import setup, find_packages

setup(
    name="Lexos",
    version="4.0rc1",
    description="Python/Flask-based website for text analysis workflow.",
    long_description="""TODO""",
    author="WheatonCS/LexomicsResearch",
    url="http://wheatoncollege.edu/lexomics/introduction-lexomics/",
    download_url="TODO",
    license="MIT",
    include_package_data=True,
    install_requires=[
        'flask',
        'numpy',
        'scikit-learn',
        'scipy',
        'beautifulsoup4',
        'lxml',
        'matplotlib',
        'chardet',
        'natsort',
        'plotly',
        'gensim'
    ],
    packages=find_packages(exclude="./test/*")
)
<|endoftext|>


<commit_before>from __future__ import absolute_import, division, print_function

import os
import sys

from setuptools import find_packages, setup

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

# Find version
for line in open(os.path.join(PROJECT_PATH, 'numpyro', 'version.py')):
    if line.startswith('__version__ = '):
        version = line.strip().split()[2][1:-1]

# READ README.md for long description on PyPi.
try:
    long_description = open('README.md', encoding='utf-8').read()
except Exception as e:
    sys.stderr.write('Failed to convert README.md to rst:\n  {}\n'.format(e))
    sys.stderr.flush()
    long_description = ''

setup(
    name='numpyro',
    version='0.1.0',
    description='Pyro PPL on Numpy',
    packages=find_packages(include=['numpyro', 'numpyro.*']),
    url='https://github.com/neerajprad/numpyro',
    author='Uber AI Labs',
    author_email='npradhan@uber.com',
    install_requires=[
        # TODO: Remove soon as JAX's API becomes stable
        'jax==0.1.35',
        'jaxlib>=0.1.14',
        'tqdm',
    ],
    extras_require={
        'doc': ['sphinx', 'sphinx_rtd_theme'],
        'test': ['flake8', 'pytest>=4.1'],
        'dev': ['ipython'],
        'examples': ['matplotlib'],
    },
    long_description=long_description,
    long_description_content_type='text/markdown',
    tests_require=['flake8', 'pytest>=4.1'],
    keywords='probabilistic machine learning bayesian statistics',
    license='MIT License',
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Operating System :: POSIX :: Linux',
        'Operating System :: MacOS :: MacOS X',
        'Programming Language :: Python :: 3.6',
    ],
)
<commit_msg>Use classifiers to specify the license. (#185)<commit_after>from __future__ import absolute_import, division, print_function

import os
import sys

from setuptools import find_packages, setup

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

# Find version
for line in open(os.path.join(PROJECT_PATH, 'numpyro', 'version.py')):
    if line.startswith('__version__ = '):
        version = line.strip().split()[2][1:-1]

# READ README.md for long description on PyPi.
try:
    long_description = open('README.md', encoding='utf-8').read()
except Exception as e:
    sys.stderr.write('Failed to convert README.md to rst:\n  {}\n'.format(e))
    sys.stderr.flush()
    long_description = ''

setup(
    name='numpyro',
    version='0.1.0',
    description='Pyro PPL on Numpy',
    packages=find_packages(include=['numpyro', 'numpyro.*']),
    url='https://github.com/neerajprad/numpyro',
    author='Uber AI Labs',
    author_email='npradhan@uber.com',
    install_requires=[
        # TODO: Remove soon as JAX's API becomes stable
        'jax==0.1.35',
        'jaxlib>=0.1.14',
        'tqdm',
    ],
    extras_require={
        'doc': ['sphinx', 'sphinx_rtd_theme'],
        'test': ['flake8', 'pytest>=4.1'],
        'dev': ['ipython'],
        'examples': ['matplotlib'],
    },
    long_description=long_description,
    long_description_content_type='text/markdown',
    tests_require=['flake8', 'pytest>=4.1'],
    keywords='probabilistic machine learning bayesian statistics',
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX :: Linux',
        'Operating System :: MacOS :: MacOS X',
        'Programming Language :: Python :: 3.6',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup

with open('README.md') as readme:
    long_desc = readme.read()

setup(
    name='NeoAlchemy',
    version='0.8.0b',
    license='MIT',
    url='https://neoalchemy.readthedocs.io/',

    description=('A microframework for Neo4J inspired by SQLAlchemy.'),
    long_description=long_desc,
    keywords='Neo4J Graph Database',

    author='Two-Bit Alchemist',
    author_email='seregon@gmail.com',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Database :: Front-Ends',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],

    install_requires=[
        'neo4j-driver',
        'six',
    ],
    setup_requires=['pytest-runner'],
    tests_require=['pytest']
)
<commit_msg>Added python-dateutil to setup.py<commit_after>from setuptools import setup

with open('README.md') as readme:
    long_desc = readme.read()

setup(
    name='NeoAlchemy',
    version='0.8.0b',
    license='MIT',
    url='https://neoalchemy.readthedocs.io/',

    description=('A microframework for Neo4J inspired by SQLAlchemy.'),
    long_description=long_desc,
    keywords='Neo4J Graph Database',

    author='Two-Bit Alchemist',
    author_email='seregon@gmail.com',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Database :: Front-Ends',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],

    install_requires=[
        'python-dateutil',
        'neo4j-driver',
        'six',
    ],
    setup_requires=['pytest-runner'],
    tests_require=['pytest']
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
setup(
    name="django-annoying",
    version="0.8.1",
    packages=find_packages(),
    author="Stavros Korokithakis",
    author_email="stavros@korokithakis.net",
    description="This is a django application that tries to eliminate annoying things in the Django framework.",
    long_description="""
        **Features:**

            - render_to decorator - Reduce typing in django views.
            - signals decorator - Allow using signals as decorators.
            - ajax_request decorator - Returns JsonResponse with dict as content.
            - autostrip decorator - Strip form text fields before validation.
            - get_object_or_None function - Similar to get_object_or_404, but returns None if the object is not found.
            - get_config function - Get settings from django.conf if exists, return a default value otherwise.
            - AutoOneToOne field - Creates related object on first call if it doesn't exist yet.
            - HttpResponseReload - Reload and stay on same page from where request was made.
            - StaticServer middleware - Instead of configuring urls.py, just add this middleware and it will serve you static files.
            - JSONField - A field that stores a Python object as JSON and retrieves it as a Python object.

        **Installation instructions:**

             - Copy the "annoying" directory to your Django project or put it in your PYTHONPATH.
             - You can also run "sudo python setup.py install" or "sudo easy_install django-annoying".

        **Download:**

            - git clone git://github.com/skorokithakis/django-annoying.git
            - hg clone http://bitbucket.org/Stavros/django-annoying/

    """,
    license="BSD",
    keywords="django",
    url="https://github.com/skorokithakis/django-annoying",
)
<commit_msg>Bump version.<commit_after>from setuptools import setup, find_packages
setup(
    name="django-annoying",
    version="0.8.2",
    packages=find_packages(),
    author="Stavros Korokithakis",
    author_email="stavros@korokithakis.net",
    description="This is a django application that tries to eliminate annoying things in the Django framework.",
    long_description="""
        **Features:**

            - render_to decorator - Reduce typing in django views.
            - signals decorator - Allow using signals as decorators.
            - ajax_request decorator - Returns JsonResponse with dict as content.
            - autostrip decorator - Strip form text fields before validation.
            - get_object_or_None function - Similar to get_object_or_404, but returns None if the object is not found.
            - get_config function - Get settings from django.conf if exists, return a default value otherwise.
            - AutoOneToOne field - Creates related object on first call if it doesn't exist yet.
            - HttpResponseReload - Reload and stay on same page from where request was made.
            - StaticServer middleware - Instead of configuring urls.py, just add this middleware and it will serve you static files.
            - JSONField - A field that stores a Python object as JSON and retrieves it as a Python object.

        **Installation instructions:**

             - Copy the "annoying" directory to your Django project or put it in your PYTHONPATH.
             - You can also run "sudo python setup.py install" or "sudo easy_install django-annoying".

        **Download:**

            - git clone git://github.com/skorokithakis/django-annoying.git
            - hg clone http://bitbucket.org/Stavros/django-annoying/

    """,
    license="BSD",
    keywords="django",
    url="https://github.com/skorokithakis/django-annoying",
)
<|endoftext|>


<commit_before>#!/usr/bin/env python3
from cx_Freeze import setup, Executable

from pytron import name, version

setup(
	name=name,
	version=version,
	description='a small game for teaching the basics of object oriented programming using Python',
	license='MIT',
	url='https://github.com/ProjectPytron/FreeThePytrons',
	author='ProjectPytron Developers',
	author_email='fkmclane@gmail.com',
	packages=['pytron', 'pytron.game', 'pytron.story', 'pytron.sandbox'],
	package_data={'pytron.game': ['res/*.*'], 'pytron.story': ['res/*.*']},
	scripts=['bin/pytron'],
	executables=[Executable('bin/pytron')],
)
<commit_msg>move to setuptools for now<commit_after>#!/usr/bin/env python3
from setuptools import setup

from pytron import name, version

setup(
	name=name,
	version=version,
	description='a small game for teaching the basics of object oriented programming using Python',
	license='MIT',
	url='https://github.com/ProjectPytron/FreeThePytrons',
	author='ProjectPytron Developers',
	author_email='fkmclane@gmail.com',
	install_requires=['pyglet', 'pymunk'],
	packages=['pytron', 'pytron.game', 'pytron.story', 'pytron.sandbox'],
	package_data={'pytron.game': ['res/*.*'], 'pytron.story': ['res/*.*']},
	scripts=['bin/pytron'],
)
<|endoftext|>


<commit_before>import os

from setuptools import setup, find_packages

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

requires = [
    'pyramid',
    'tahrir_api',
    'SQLAlchemy',
    'transaction',
    'pyramid_tm',
    'zope.sqlalchemy',
    "weberror",
    "tw2.sqla",
    "formencode",  # For file uploads
    ]

setup(name='tahrir',
      version='0.1.5',
      description='A pyramid app for issuing your own Open Badges',
      long_description=README,
      license="AGPLv3+",
      classifiers=[
        "Programming Language :: Python",
        "Framework :: Pyramid",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
        ],
      author='Ralph Bean',
      author_email='rbean@redhat.com',
      url='http://github.com/ralphbean/tahrir',
      keywords='web wsgi bfg pylons pyramid',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      test_suite='tahrir',
      install_requires=requires,
      entry_points="""\
      [paste.app_factory]
      main = tahrir:main
      """,
      )

<commit_msg>Version bump for person ID fix<commit_after>import os

from setuptools import setup, find_packages

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

requires = [
    'pyramid',
    'tahrir_api',
    'SQLAlchemy',
    'transaction',
    'pyramid_tm',
    'zope.sqlalchemy',
    "weberror",
    "tw2.sqla",
    "formencode",  # For file uploads
    ]

setup(name='tahrir',
      version='0.1.6',
      description='A pyramid app for issuing your own Open Badges',
      long_description=README,
      license="AGPLv3+",
      classifiers=[
        "Programming Language :: Python",
        "Framework :: Pyramid",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
        ],
      author='Ralph Bean',
      author_email='rbean@redhat.com',
      url='http://github.com/ralphbean/tahrir',
      keywords='web wsgi bfg pylons pyramid',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      test_suite='tahrir',
      install_requires=requires,
      entry_points="""\
      [paste.app_factory]
      main = tahrir:main
      """,
      )

<|endoftext|>


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

setup(
    name='hiveplot',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version='0.1.3.5',

    description='Hive Plots in Matplotlib.',
    long_description='Utility class for easily making hive plots in Python.',

    # The project's main homepage.
    url='https://github.com/ericmjl/hiveplot',

    # Author details
    author='Eric J. Ma',
    author_email='ericmajinglong@gmail.com',

    # Choose your license
    license='MIT',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 3 - Alpha',

        # Indicate who your project is intended for
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Visualization',

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

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],

    # What does your project relate to?
    keywords='network analysis, hive plots, data visualization',

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

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

    # List additional groups of dependencies here (e.g. development dependencies).
    # You can install these using the following syntax, for example:
    # $ pip install -e .[dev,test]
    extras_require = {
        'dev': ['check-manifest'],
        'test': ['coverage'],
    },

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    # package_data={
    #     'sample': ['package_data.dat'],
    # },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages.
    # see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
    # data_files=[('my_data', ['data/data_file'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    # entry_points={
    #     'console_scripts': [
    #         'sample=sample:main',
    #     ],
    # },
)<commit_msg>updated version number<commit_after>from setuptools import setup, find_packages  # Always prefer setuptools over distutils
from codecs import open  # To use a consistent encoding
from os import path

setup(
    name='hiveplot',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version='0.1.3.6',

    description='Hive Plots in Matplotlib.',
    long_description='Utility class for easily making hive plots in Python.',

    # The project's main homepage.
    url='https://github.com/ericmjl/hiveplot',

    # Author details
    author='Eric J. Ma',
    author_email='ericmajinglong@gmail.com',

    # Choose your license
    license='MIT',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 3 - Alpha',

        # Indicate who your project is intended for
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Visualization',

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

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],

    # What does your project relate to?
    keywords='network analysis, hive plots, data visualization',

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

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

    # List additional groups of dependencies here (e.g. development dependencies).
    # You can install these using the following syntax, for example:
    # $ pip install -e .[dev,test]
    extras_require = {
        'dev': ['check-manifest'],
        'test': ['coverage'],
    },

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    # package_data={
    #     'sample': ['package_data.dat'],
    # },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages.
    # see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
    # data_files=[('my_data', ['data/data_file'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    # entry_points={
    #     'console_scripts': [
    #         'sample=sample:main',
    #     ],
    # },
)<|endoftext|>


<commit_before>import sys
import os

from setuptools import setup, find_packages

_base = os.path.dirname(os.path.abspath(__file__))
_requirements = os.path.join(_base, 'requirements.txt')
_requirements_test = os.path.join(_base, 'requirements-test.txt')

version = "1.4.5"

install_requirements = []
with open(_requirements) as f:
    install_requirements = f.read().splitlines()

test_requirements = []
if "test" in sys.argv:
    with open(_requirements_test) as f:
        test_requirements = f.read().splitlines()

setup(
    name="emgcli",
    packages=find_packages(exclude=['ez_setup']),
    version=version,
    install_requires=install_requirements,
    setup_requires=['pytest-runner'],
    tests_require=test_requirements,
    include_package_data=True,
    zip_safe=False,
    test_suite="tests",
    entry_points={
        'console_scripts': [
            'emgcli=emgcli.manage:main',
            'emgdeploy=gunicorn.app.wsgiapp:run',
        ],
    },
)
<commit_msg>Bump version<commit_after>import sys
import os

from setuptools import setup, find_packages

_base = os.path.dirname(os.path.abspath(__file__))
_requirements = os.path.join(_base, 'requirements.txt')
_requirements_test = os.path.join(_base, 'requirements-test.txt')

version = "1.4.6"

install_requirements = []
with open(_requirements) as f:
    install_requirements = f.read().splitlines()

test_requirements = []
if "test" in sys.argv:
    with open(_requirements_test) as f:
        test_requirements = f.read().splitlines()

setup(
    name="emgcli",
    packages=find_packages(exclude=['ez_setup']),
    version=version,
    install_requires=install_requirements,
    setup_requires=['pytest-runner'],
    tests_require=test_requirements,
    include_package_data=True,
    zip_safe=False,
    test_suite="tests",
    entry_points={
        'console_scripts': [
            'emgcli=emgcli.manage:main',
            'emgdeploy=gunicorn.app.wsgiapp:run',
        ],
    },
)
<|endoftext|>


<commit_before># This gets f2py_signatures installed in the correct place. See
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
from distutils.command.install import INSTALL_SCHEMES
for scheme in INSTALL_SCHEMES.values():
    scheme['data'] = scheme['purelib']

# Importing these adds a 'bdist_mpkg' option that allows building binary packages on OS X.
try:
    import setuptools
    import bdist_mpkg
except ImportError:
    pass

import scipy
if hasattr(scipy, 'Numeric'):
    # Using old scipy
    import scipy_distutils.core as core
else:
    # Using new scipy
    import numpy.distutils.core as core

# This is a kludge so that sdist works on AFS systems.
# AFS doesn't allow hard-linking across directories, but if we're on linux
#  we still have a os.link function (which is all distutils check for).
# If we delete os.link, sdist will copy rather than link.
# See http://mail.python.org/pipermail/distutils-sig/2002-October/002990.html
#  for more detail, and a patch that apparently never got applied to trunk
#  distutils
# I don't know why this kludge wasn't needed for Python 2.3
import os
if hasattr(os, 'link'):
    del os.link

# These packages include some BLAS functions in them. Strangely, at least
#  on CCMR, it seems (very slightly), faster to use the included ones rather
#  than linking against LAPACK.
daskr = core.Extension(name = 'SloppyCell._daskr',
                       sources = ['daskr.pyf', 'ddaskr/ddaskr.f',
                                  'ddaskr/daux.f', 'ddaskr/dlinpk.f'])

misc_c = core.Extension(name = 'SloppyCell.misc_c',
                        sources = ['misc_c.c', 'misc_c.pyf'])

core.setup(name='SloppyCell',
           version='CVS',
           author='Ryan Gutenkunst',
           author_email='rng7@cornell.edu',
           url='http://sloppycell.sourceforge.net',
           packages=['SloppyCell',
                     'SloppyCell.ReactionNetworks',
                     'SloppyCell.Testing',
                     'SloppyCell.ExprManip',
                     'SloppyCell.Vandermonde'
                     ],
           package_dir={'SloppyCell': ''},
           data_files=[('SloppyCell/ReactionNetworks',
                        ['ReactionNetworks/f2py_signatures.pyf',
                         'ReactionNetworks/mtrand.h',
                         'ReactionNetworks/mtrand.c'])],

           ext_modules = [daskr, misc_c]
           )
<commit_msg>Modified so that Doc, ddaskr, and Examples get included in package installation directory. It's probably overkill, but we had a user who was confused that they weren't there.<commit_after># This gets f2py_signatures installed in the correct place. See
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
from distutils.command.install import INSTALL_SCHEMES
for scheme in INSTALL_SCHEMES.values():
    scheme['data'] = scheme['purelib']

# Importing these adds a 'bdist_mpkg' option that allows building binary packages on OS X.
try:
    import setuptools
    import bdist_mpkg
except ImportError:
    pass

import scipy
if hasattr(scipy, 'Numeric'):
    # Using old scipy
    import scipy_distutils.core as core
    data_files = [('SloppyCell/ReactionNetworks',
                   ['ReactionNetworks/f2py_signatures.pyf',
                    'ReactionNetworks/mtrand.h',
                    'ReactionNetworks/mtrand.c'])]
else:
    # Using new scipy
    import numpy.distutils.core as core

    from numpy.distutils.misc_util import Configuration
    # Annoyingly, distutils doesn't have an option to recursively include
    # a data directory. We can use numpy's Configuration class, however,
    # to do the recursion for us.
    config = Configuration('SloppyCell')
    config.add_data_files(('SloppyCell/ReactionNetworks',
                           ['ReactionNetworks/f2py_signatures.pyf',
                            'ReactionNetworks/mtrand.h',
                            'ReactionNetworks/mtrand.c']))
    config.add_data_dir('Doc')
    config.add_data_dir('ddaskr')
    config.add_data_dir('Examples')
    data_files = config.todict()['data_files']

# This is a kludge so that sdist works on AFS systems.
# AFS doesn't allow hard-linking across directories, but if we're on linux
#  we still have a os.link function (which is all distutils check for).
# If we delete os.link, sdist will copy rather than link.
# See http://mail.python.org/pipermail/distutils-sig/2002-October/002990.html
#  for more detail, and a patch that apparently never got applied to trunk
#  distutils
# I don't know why this kludge wasn't needed for Python 2.3
import os
if hasattr(os, 'link'):
    del os.link

# These packages include some BLAS functions in them. Strangely, at least
#  on CCMR, it seems (very slightly), faster to use the included ones rather
#  than linking against LAPACK.
daskr = core.Extension(name = 'SloppyCell._daskr',
                       sources = ['daskr.pyf', 'ddaskr/ddaskr.f',
                                  'ddaskr/daux.f', 'ddaskr/dlinpk.f'])

misc_c = core.Extension(name = 'SloppyCell.misc_c',
                        sources = ['misc_c.c', 'misc_c.pyf'])

core.setup(name='SloppyCell',
           version='CVS',
           author='Ryan Gutenkunst',
           author_email='rng7@cornell.edu',
           url='http://sloppycell.sourceforge.net',
           packages=['SloppyCell',
                     'SloppyCell.ReactionNetworks',
                     'SloppyCell.Testing',
                     'SloppyCell.ExprManip',
                     'SloppyCell.Vandermonde',
                     ],
           package_dir={'SloppyCell': ''},
           data_files=data_files,

           ext_modules = [daskr, misc_c]
           )
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages

VERSION = "0.2"

setup(
    name="django-portlet",
    version = VERSION,
    author="Nar Chhantyal",
    author_email="julian@freshmilk.tv",
    url="https://github.com/Freshmilk/",
    description="""Django portlet system""",
    packages=find_packages(),
    namespace_packages = [],
    include_package_data = True,
    zip_safe=False,
    license="None",
    install_requires=['simplejson']
)
<commit_msg>add package data in setup.py<commit_after>import os
from setuptools import setup, find_packages

VERSION = "0.2"

setup(
    name="django-portlet",
    version = VERSION,
    author="Nar Chhantyal",
    author_email="julian@freshmilk.tv",
    url="https://github.com/Freshmilk/",
    description="""Django portlet system""",
    packages=find_packages(),
    namespace_packages = [],
    include_package_data = True,
    package_data={
    'portlet': [
        'templates/portlet/*',
        ]
    },
    zip_safe=False,
    license="None",
    install_requires=['simplejson']
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    Setup file for isolates.

    This file was generated with PyScaffold 2.4.2, a tool that easily
    puts up a scaffold for your new Python project. Learn more under:
    http://pyscaffold.readthedocs.org/
"""
import sys
import os
from setuptools import setup

def setup_package():
    needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
    sphinx = ['sphinx'] if needs_sphinx else []
    setup(setup_requires=['six', 'pyscaffold>=2.4rc1,<2.5a0'] + sphinx,
          tests_require=['pytest_cov', 'pytest'],
          use_pyscaffold=True)

def install_shell_scripts():
    repo_dir = os.path.dirname(os.path.realpath(__file__))
    src, dst = repo_dir +"/update", repo_dir +"/env/bin/update"
    if not os.path.exists(dst):
        os.chmod(src, 484) #0744
        os.symlink(src, dst)

if __name__ == "__main__":
    setup_package()
    install_shell_scripts()
<commit_msg>bug fix<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    Setup file for isolates.

    This file was generated with PyScaffold 2.4.2, a tool that easily
    puts up a scaffold for your new Python project. Learn more under:
    http://pyscaffold.readthedocs.org/
"""
import sys
import os
from setuptools import setup

def setup_package():
    needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
    sphinx = ['sphinx'] if needs_sphinx else []
    setup(setup_requires=['six', 'pyscaffold>=2.4rc1,<2.5a0'] + sphinx,
          tests_require=['pytest_cov', 'pytest'],
          use_pyscaffold=True)

def install_shell_scripts():
    repo_dir = os.path.dirname(os.path.realpath(__file__))
    src, dst = repo_dir +"/update", repo_dir +"/env/bin/update"
    os.chmod(src, 484) #0744
    if not os.path.exists(dst):
        os.symlink(src, dst)

if __name__ == "__main__":
    setup_package()
    install_shell_scripts()
<|endoftext|>


<commit_before>import os
from codecs import open
from setuptools import setup, find_packages

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

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

setup(
    name='django-model-history2',
    version='0.9.2',
    description='Utility to track changes in object models',
    long_description=long_description,
    license='MIT',
    url='https://github.com/shamanis/django-model-history2',
    author='Petr Bondarenko',
    author_email='mdma.zone@gmail.com',
    packages=find_packages(),
    keywords='models history revert objects',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Utilities',
    ]
)<commit_msg>0.9.1<commit_after>import os
from codecs import open
from setuptools import setup, find_packages

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

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

setup(
    name='django-model-history2',
    version='0.9.1',
    description='Utility to track changes in object models',
    long_description=long_description,
    license='MIT',
    url='https://github.com/shamanis/django-model-history2',
    author='Petr Bondarenko',
    author_email='mdma.zone@gmail.com',
    packages=find_packages(),
    keywords='models history revert objects',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Utilities',
    ]
)<|endoftext|>


<commit_before>#
# This file is part of gruvi. Gruvi is free software available under the
# terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
#
# Copyright (c) 2012-2013 the gruvi authors. See the file "AUTHORS" for a
# complete list.

from __future__ import absolute_import, print_function

import os
import sys
import textwrap
import json
import re

from setuptools import setup, Extension

# CFFI is needed to call setup() and therefore it needs to be installed before
# this setup script can be run. Look in the version history for this file for a
# hack to install it automatically. However for now let's keep it simple and
# just require the user to install it.

try:
    import cffi
except ImportError:
    sys.stderr.write('Error: CFFI (required for setup) is not available.\n')
    sys.stderr.write('Please use "pip install cffi", or equivalent.\n')
    sys.exit(1)

re_int = re.compile('^(\d*).*$')
cffi_ver = tuple((int(re_int.sub('0\\1', x)) for x in cffi.__version__.split('.')))
if cffi_ver < (0, 8):
    sys.stderr.write('Error: CFFI (required for setup) is too old.\n')
    sys.stderr.write('Please install at least version 0.8.\n')
    sys.exit(1)

PY2 = sys.version_info[0] == 2

version_info = {
    'name': 'gruvi',
    'version': '0.10.1.dev',
    'description': 'Synchronous evented IO with pyuv and fibers',
    'author': 'Geert Jansen',
    'author_email': 'geertj@gmail.com',
    'url': 'https://github.com/geertj/gruvi',
    'license': 'MIT',
    'classifiers': [
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: MacOS :: MacOS X',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
    ]
}

topdir, _ = os.path.split(os.path.abspath(__file__))

def update_version():
    """Update the _version.py file."""
    fname = os.path.join('.', 'gruvi', '_version.py')
    try:
        with open(fname) as fin:
            current = fin.read()
    except IOError:
        current = None
    # json.dumps will produce valid Python for version_info
    new = textwrap.dedent("""\
            # This file is autogenerated. Do not edit.
            version_info = {0}
            """).format(json.dumps(version_info, indent=4, sort_keys=True,
                                   separators=(',', ': ')))
    if current == new:
        return
    tmpname = '{0}.{1}-tmp'.format(fname, os.getpid())
    with open(tmpname, 'w') as fout:
        fout.write(new)
    os.rename(tmpname, fname)
    print('Updated _version.py')

def main():
    os.chdir(topdir)
    update_version()
    # Import the FFI modules without importing the package.
    sys.path.append('gruvi')
    import http_ffi
    import jsonrpc_ffi
    ext_modules = [http_ffi.ffi.verifier.get_extension(),
                   jsonrpc_ffi.ffi.verifier.get_extension()]
    # On Windows, don't compile _sslcompat by default. Windows doesn't have a
    # system provided OpenSSL, and the official Python builds for Windows use a
    # static version of OpenSSL that is built duing the Python build process.
    # No shared library or headers are provided for it, so it's alsmost
    # impossible to match it. If you really want _sslcompat on Python 2.x on
    # Windows, your best bet is to compile Python from source, keep the OpenSSL
    # temporary build, and link against that.
    if PY2 and not sys.platform.startswith('win'):
        ext_modules.append(Extension('_sslcompat', ['gruvi/_sslcompat.c'],
                                     libraries=['ssl', 'crypto']))
    sys.path.pop()
    setup(
        packages=['gruvi', 'gruvi.txdbus'],
        install_requires=['cffi', 'fibers', 'pyuv', 'six'],
        ext_package='gruvi',
        ext_modules=ext_modules,
        **version_info
    )

if __name__ == '__main__':
    main()
<commit_msg>version 0.10.1<commit_after>#
# This file is part of gruvi. Gruvi is free software available under the
# terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
#
# Copyright (c) 2012-2013 the gruvi authors. See the file "AUTHORS" for a
# complete list.

from __future__ import absolute_import, print_function

import os
import sys
import textwrap
import json
import re

from setuptools import setup, Extension

# CFFI is needed to call setup() and therefore it needs to be installed before
# this setup script can be run. Look in the version history for this file for a
# hack to install it automatically. However for now let's keep it simple and
# just require the user to install it.

try:
    import cffi
except ImportError:
    sys.stderr.write('Error: CFFI (required for setup) is not available.\n')
    sys.stderr.write('Please use "pip install cffi", or equivalent.\n')
    sys.exit(1)

re_int = re.compile('^(\d*).*$')
cffi_ver = tuple((int(re_int.sub('0\\1', x)) for x in cffi.__version__.split('.')))
if cffi_ver < (0, 8):
    sys.stderr.write('Error: CFFI (required for setup) is too old.\n')
    sys.stderr.write('Please install at least version 0.8.\n')
    sys.exit(1)

PY2 = sys.version_info[0] == 2

version_info = {
    'name': 'gruvi',
    'version': '0.10.1',
    'description': 'Synchronous evented IO with pyuv and fibers',
    'author': 'Geert Jansen',
    'author_email': 'geertj@gmail.com',
    'url': 'https://github.com/geertj/gruvi',
    'license': 'MIT',
    'classifiers': [
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: MacOS :: MacOS X',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
    ]
}

topdir, _ = os.path.split(os.path.abspath(__file__))

def update_version():
    """Update the _version.py file."""
    fname = os.path.join('.', 'gruvi', '_version.py')
    try:
        with open(fname) as fin:
            current = fin.read()
    except IOError:
        current = None
    # json.dumps will produce valid Python for version_info
    new = textwrap.dedent("""\
            # This file is autogenerated. Do not edit.
            version_info = {0}
            """).format(json.dumps(version_info, indent=4, sort_keys=True,
                                   separators=(',', ': ')))
    if current == new:
        return
    tmpname = '{0}.{1}-tmp'.format(fname, os.getpid())
    with open(tmpname, 'w') as fout:
        fout.write(new)
    os.rename(tmpname, fname)
    print('Updated _version.py')

def main():
    os.chdir(topdir)
    update_version()
    # Import the FFI modules without importing the package.
    sys.path.append('gruvi')
    import http_ffi
    import jsonrpc_ffi
    ext_modules = [http_ffi.ffi.verifier.get_extension(),
                   jsonrpc_ffi.ffi.verifier.get_extension()]
    # On Windows, don't compile _sslcompat by default. Windows doesn't have a
    # system provided OpenSSL, and the official Python builds for Windows use a
    # static version of OpenSSL that is built duing the Python build process.
    # No shared library or headers are provided for it, so it's alsmost
    # impossible to match it. If you really want _sslcompat on Python 2.x on
    # Windows, your best bet is to compile Python from source, keep the OpenSSL
    # temporary build, and link against that.
    if PY2 and not sys.platform.startswith('win'):
        ext_modules.append(Extension('_sslcompat', ['gruvi/_sslcompat.c'],
                                     libraries=['ssl', 'crypto']))
    sys.path.pop()
    setup(
        packages=['gruvi', 'gruvi.txdbus'],
        install_requires=['cffi', 'fibers', 'pyuv', 'six'],
        ext_package='gruvi',
        ext_modules=ext_modules,
        **version_info
    )

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


<commit_before># -*- coding: utf-8 -*
from setuptools.command.install import install
from setuptools import find_packages
from setuptools import setup
import subprocess
import codecs
import sys
import os

def read(*parts):
    # intentionally *not* adding an encoding option to open
    # see here: https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
    return codecs.open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts), 'r').read()

setup(name="hitchserve",
      version=read("VERSION").replace("\n", ""),
      description="Service orchestration library for the Hitch testing framework.",
      long_description=read('README.rst'),
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
          'Topic :: Software Development :: Quality Assurance',
          'Topic :: Software Development :: Testing',
          'Topic :: Software Development :: Libraries',
          'Operating System :: Unix',
          'Environment :: Console',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ],
      keywords='hitch testing framework bdd tdd declarative tests testing epoll kqueue service',
      author='Colm O\'Connor',
      author_email='colm.oconnor.github@gmail.com',
      url='https://github.com/hitchtest/hitchserve/',
      license='AGPL',
      install_requires=['humanize>=0.5.1', 'colorama', 'psutil', 'pyuv', 'tblib', 'faketime', ],
      packages=find_packages(exclude=[]),
      package_data={},
      zip_safe=False,
      include_package_data=True,
)
<commit_msg>BUG : Added missing dependency on commandlib.<commit_after># -*- coding: utf-8 -*
from setuptools.command.install import install
from setuptools import find_packages
from setuptools import setup
import subprocess
import codecs
import sys
import os

def read(*parts):
    # intentionally *not* adding an encoding option to open
    # see here: https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
    return codecs.open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts), 'r').read()

setup(name="hitchserve",
      version=read("VERSION").replace("\n", ""),
      description="Service orchestration library for the Hitch testing framework.",
      long_description=read('README.rst'),
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
          'Topic :: Software Development :: Quality Assurance',
          'Topic :: Software Development :: Testing',
          'Topic :: Software Development :: Libraries',
          'Operating System :: Unix',
          'Environment :: Console',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ],
      keywords='hitch testing framework bdd tdd declarative tests testing epoll kqueue service',
      author='Colm O\'Connor',
      author_email='colm.oconnor.github@gmail.com',
      url='https://github.com/hitchtest/hitchserve/',
      license='AGPL',
      install_requires=['humanize>=0.5.1', 'colorama', 'psutil', 'pyuv', 'tblib', 'faketime', 'commandlib', ],
      packages=find_packages(exclude=[]),
      package_data={},
      zip_safe=False,
      include_package_data=True,
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

# Function to convert simple ETS project names and versions to a requirements
# spec that works for both development builds and stable builds.  Allows
# a caller to specify a max version, which is intended to work along with
# Enthought's standard versioning scheme -- see the following write up:
#    https://svn.enthought.com/enthought/wiki/EnthoughtVersionNumbers
def etsdep(p, min, max=None, literal=False):
    require = '%s >=%s.dev' % (p, min)
    if max is not None:
        if literal is False:
            require = '%s, <%s.a' % (require, max)
        else:
            require = '%s, <%s' % (require, max)
    return require

# Declare our ETS project dependencies.
ENSTALLERGUI = etsdep('enthought.enstaller.gui', '2.2.0b4', '2.3.0')
ETS = etsdep('enthought.ets', '2.0.0b1')
ETSCONIFG = etsdep('enthought.etsconfig', '2.0.0b1')
TRAITS = etsdep('enthought.traits', '3.0.0b1')

setup(
    author = "Richard L. Ratzel",
    author_email = "rlratzel@enthought.com",
    dependency_links = [
        'http://code.enthought.com/enstaller/eggs/source',
        'http://code.enthought.com/enstaller/eggs/source/unstable',
        ],
    description = "The Enthought installer.  Enhances setuptools by adding " \
        "query options, support for post-install scripts, and much more.",
    entry_points = {
        "console_scripts" : [
            "enstaller = enthought.enstaller.launcher:launch",
            ],
        },
    extras_require = {
        "gui" : [
            ENSTALLERGUI,
            ],
        # All non-ets dependencies should be in this extra to ensure users can
        # decide whether to require them or not.
        'nonets': [
            ],
        },
    ext_modules = [],
    include_package_data = True,
    install_requires = [
        ETS,
        #ETSCONFIG,
        TRAITS,
       ],
    license = "BSD",
    name = "enthought.enstaller",
    namespace_packages = [
        "enthought",
        "enthought.enstaller",
        ],
    packages = find_packages(),
    url = "http://code.enthought.com/enstaller",
    version = "2.2.0b4",
    zip_safe = False,
    )

<commit_msg>updating maintainer info on Enstaller<commit_after>from setuptools import setup, find_packages

# Function to convert simple ETS project names and versions to a requirements
# spec that works for both development builds and stable builds.  Allows
# a caller to specify a max version, which is intended to work along with
# Enthought's standard versioning scheme -- see the following write up:
#    https://svn.enthought.com/enthought/wiki/EnthoughtVersionNumbers
def etsdep(p, min, max=None, literal=False):
    require = '%s >=%s.dev' % (p, min)
    if max is not None:
        if literal is False:
            require = '%s, <%s.a' % (require, max)
        else:
            require = '%s, <%s' % (require, max)
    return require

# Declare our ETS project dependencies.
ENSTALLERGUI = etsdep('enthought.enstaller.gui', '2.2.0b4', '2.3.0')
ETS = etsdep('enthought.ets', '2.0.0b1')
ETSCONIFG = etsdep('enthought.etsconfig', '2.0.0b1')
TRAITS = etsdep('enthought.traits', '3.0.0b1')

setup(
    author = "Richard L. Ratzel",
    author_email = "rlratzel@enthought.com",
    maintainer = "Chris Galvan",
    maintainer_email = "cgalvan@enthought.com",
    dependency_links = [
        'http://code.enthought.com/enstaller/eggs/source',
        'http://code.enthought.com/enstaller/eggs/source/unstable',
        ],
    description = "The Enthought installer.  Enhances setuptools by adding " \
        "query options, support for post-install scripts, and much more.",
    entry_points = {
        "console_scripts" : [
            "enstaller = enthought.enstaller.launcher:launch",
            ],
        },
    extras_require = {
        "gui" : [
            ENSTALLERGUI,
            ],
        # All non-ets dependencies should be in this extra to ensure users can
        # decide whether to require them or not.
        'nonets': [
            ],
        },
    ext_modules = [],
    include_package_data = True,
    install_requires = [
        ETS,
        #ETSCONFIG,
        TRAITS,
       ],
    license = "BSD",
    name = "enthought.enstaller",
    namespace_packages = [
        "enthought",
        "enthought.enstaller",
        ],
    packages = find_packages(),
    url = "http://code.enthought.com/enstaller",
    version = "2.2.0b4",
    zip_safe = False,
    )

<|endoftext|>


<commit_before>from setuptools import find_packages, setup

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

setup(
    name="larq",
    version="0.10.0",
    python_requires=">=3.6",
    author="Plumerai",
    author_email="lukas@plumerai.co.uk",
    description="An Open Source Machine Learning Library for Training Binarized Neural Networks",
    long_description=readme(),
    long_description_content_type="text/markdown",
    url="https://larq.dev/",
    packages=find_packages(exclude=["larq.snapshots"]),
    license="Apache 2.0",
    install_requires=[
        "numpy >= 1.15.4, < 2.0",
        "terminaltables>=3.1.0",
        "dataclasses ; python_version<'3.7'",
    ],
    extras_require={
        "tensorflow": ["tensorflow>=1.14.0"],
        "tensorflow_gpu": ["tensorflow-gpu>=1.14.0"],
        "test": [
            "black==19.10b0",
            "flake8>=3.7.9,<3.9.0",
            "isort==5.2.0",
            "packaging>=19.2,<21.0",
            "pytest>=5.2.4,<6.1.0",
            "pytest-cov>=2.8.1,<2.11.0",
            "pytest-xdist>=1.30,<1.35",
            "pytest-mock>=2.0,<3.3",
            "pytype==2020.7.24",
            "snapshottest~=0.5.1",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<commit_msg>Bump isort from 5.2.0 to 5.2.1 (#543)<commit_after>from setuptools import find_packages, setup

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

setup(
    name="larq",
    version="0.10.0",
    python_requires=">=3.6",
    author="Plumerai",
    author_email="lukas@plumerai.co.uk",
    description="An Open Source Machine Learning Library for Training Binarized Neural Networks",
    long_description=readme(),
    long_description_content_type="text/markdown",
    url="https://larq.dev/",
    packages=find_packages(exclude=["larq.snapshots"]),
    license="Apache 2.0",
    install_requires=[
        "numpy >= 1.15.4, < 2.0",
        "terminaltables>=3.1.0",
        "dataclasses ; python_version<'3.7'",
    ],
    extras_require={
        "tensorflow": ["tensorflow>=1.14.0"],
        "tensorflow_gpu": ["tensorflow-gpu>=1.14.0"],
        "test": [
            "black==19.10b0",
            "flake8>=3.7.9,<3.9.0",
            "isort==5.2.1",
            "packaging>=19.2,<21.0",
            "pytest>=5.2.4,<6.1.0",
            "pytest-cov>=2.8.1,<2.11.0",
            "pytest-xdist>=1.30,<1.35",
            "pytest-mock>=2.0,<3.3",
            "pytype==2020.7.24",
            "snapshottest~=0.5.1",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='wodpy',
    version='0.1',
    packages=find_packages(exclude=['tests*']),
    license='MIT',
    description='A parser for the WOD data format, described in http://data.nodc.noaa.gov/woa/WOD/DOC/wodreadme.pdf',
    long_description=open('README.md').read(),
    install_requires=['numpy'],
    url='',
    author='Simon Good, Bill Mills',
    author_email='mills.wj@gmail.com'
)<commit_msg>add website link<commit_after>from setuptools import setup, find_packages

setup(
    name='wodpy',
    version='0.1',
    packages=find_packages(exclude=['tests*']),
    license='MIT',
    description='A parser for the WOD data format, described in http://data.nodc.noaa.gov/woa/WOD/DOC/wodreadme.pdf',
    long_description=open('README.md').read(),
    install_requires=['numpy'],
    url='https://github.com/BillMills/wodpy',
    author='Simon Good, Bill Mills',
    author_email='mills.wj@gmail.com'
)<|endoftext|>


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

from io import open
from setuptools import setup, find_packages

setup(
    name='django-debug-informer',
    version='0.3.0',
    description='A simple application that helps displays various debug information about the Django project',
    long_description=open('README.md', encoding='utf-8').read(),
    author='Nikita Grishko',
    author_email='grin.minsk+github@gmail.com',
    url='https://github.com/Gr1N/django-debug-informer',
    download_url='https://pypi.python.org/pypi/django-debug-informer',
    license='MIT',
    packages=find_packages(exclude=(
        'tests.*',
        'tests',
        'example',
    )),
    install_requires=(
        'django>=1.9',
    ),
    extras_require={
        'test': (
            'tox',
        ),
        'development': (
            'flake8',
            'zest.releaser',
            'check-manifest',
            'coverage',
        ),
    },
    include_package_data=True,
    zip_safe=False,
    classifiers=(
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
    )
)
<commit_msg>Back to development: 0.3.1<commit_after># -*- coding: utf-8 -*-

from io import open
from setuptools import setup, find_packages

setup(
    name='django-debug-informer',
    version='0.3.1.dev0',
    description='A simple application that helps displays various debug information about the Django project',
    long_description=open('README.md', encoding='utf-8').read(),
    author='Nikita Grishko',
    author_email='grin.minsk+github@gmail.com',
    url='https://github.com/Gr1N/django-debug-informer',
    download_url='https://pypi.python.org/pypi/django-debug-informer',
    license='MIT',
    packages=find_packages(exclude=(
        'tests.*',
        'tests',
        'example',
    )),
    install_requires=(
        'django>=1.9',
    ),
    extras_require={
        'test': (
            'tox',
        ),
        'development': (
            'flake8',
            'zest.releaser',
            'check-manifest',
            'coverage',
        ),
    },
    include_package_data=True,
    zip_safe=False,
    classifiers=(
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
    )
)
<|endoftext|>


<commit_before>import logging
logger = logging.getLogger('storage')

class ReadOnlyStorage(object):

    def __init__(self, fs_path, wd_path):
        self._wd_path = self._norm_path(wd_path)
        self._fs_path = self._norm_path(fs_path)
        msg = "Opened storage at '{}' to '{}'."
        logger.debug(msg.format(self._wd_path, self._fs_path))

    def open_file(self, filename, * args, ** kwargs):
        return open(self._fn_fs(filename), 'rb', * args, ** kwargs)

    def _norm_path(self, path):
        import os
        p = os.path.realpath(path)
        if not os.path.isdir(p):
            raise NotADirectoryError(p)
        return p

    def _fn_fs(self, filename):
        from os.path import join
        return join(self._fs_path, filename)

    def _fn_wd(self, filename):
        from os.path import join
        return join(self._wd_path, filename)

    def list_files(self):
        from os import listdir
        return listdir(self._fs_path)

    def download_file(self, filename, overwrite = False):
        from shutil import copy2 as copy
        if not overwrite:
            import os
            if os.path.isfile(filename):
                msg = "File '{}' already exists. Use overwrite=True to ignore."
                raise FileExistsError(msg.format(filename))
        copy(self._fn_fs(filename), filename)

class Storage(ReadOnlyStorage):

    def open_file(self, filename, * args, ** kwargs):
        return open(self._fn_fs(filename), * args, ** kwargs)

    def remove_file(self, filename):
        import os
        os.remove(self._fn_fs(filename))

    def clear(self):
        import os
        self.remove()
        try:
            os.mkdir(self._fs_path)
        except FileExistsError:
            pass

    def remove(self):
        from shutil import rmtree
        rmtree(self._fs_path)

    def _move_file(self, src, dst):
        from shutil import move
        msg = "Moving from '{}' to '{}'."
        logger.debug(msg.format(src, dst))
        move(src, dst)

    def store_file(self, filename):
        from shutil import move
        try:
            src = self._fn_wd(filename)
            dst = self._fn_fs(filename)
            self._move_file(src, dst)
        except FileNotFoundError as error:
            raise FileNotFoundError(filename) from error

    def restore_file(self, filename):
        try:
            src = self._fn_fs(filename)
            dst = self._fn_wd(filename)
            self._move_file(src, dst)
        except FileNotFoundError as error:
            raise FileNotFoundError(filename) from error

    def store_files(self, pathname = '*', * args):
        import glob
        from itertools import chain
        from os.path import join, split
        for pattern in chain([pathname], args):
            p = join(self._wd_path, pattern)
            logger.debug("Pattern '{}'.".format(p))
            for fn in glob.glob(p):
                base = split(fn)[1]
                self.store_file(base)

    def restore_files(self, pathname = '*', * args):
        import glob
        from itertools import chain
        from os.path import join, split
        for pattern in chain([pathname], args):
            p = join(self._fs_path, pattern)
            logger.debug("Pattern '{}'.".format(p))
            for fn in glob.glob(p):
                base = split(fn)[1]
                self.restore_file(base)
                #self.restore_file(fn)

    def fetch_file(self, storage, fn):
        from shutil import copy2 as copy
        copy(storage._fn_fs(fn), self._fn_fs(fn))
<commit_msg>Surpress error on removal of storage.<commit_after>import logging
logger = logging.getLogger('storage')

class ReadOnlyStorage(object):

    def __init__(self, fs_path, wd_path):
        self._wd_path = self._norm_path(wd_path)
        self._fs_path = self._norm_path(fs_path)
        msg = "Opened storage at '{}' to '{}'."
        logger.debug(msg.format(self._wd_path, self._fs_path))

    def open_file(self, filename, * args, ** kwargs):
        return open(self._fn_fs(filename), 'rb', * args, ** kwargs)

    def _norm_path(self, path):
        import os
        p = os.path.realpath(path)
        if not os.path.isdir(p):
            raise NotADirectoryError(p)
        return p

    def _fn_fs(self, filename):
        from os.path import join
        return join(self._fs_path, filename)

    def _fn_wd(self, filename):
        from os.path import join
        return join(self._wd_path, filename)

    def list_files(self):
        from os import listdir
        return listdir(self._fs_path)

    def download_file(self, filename, overwrite = False):
        from shutil import copy2 as copy
        if not overwrite:
            import os
            if os.path.isfile(filename):
                msg = "File '{}' already exists. Use overwrite=True to ignore."
                raise FileExistsError(msg.format(filename))
        copy(self._fn_fs(filename), filename)

class Storage(ReadOnlyStorage):

    def open_file(self, filename, * args, ** kwargs):
        return open(self._fn_fs(filename), * args, ** kwargs)

    def remove_file(self, filename):
        import os
        os.remove(self._fn_fs(filename))

    def clear(self):
        import os
        self.remove()
        try:
            os.mkdir(self._fs_path)
        except FileExistsError:
            pass

    def remove(self):
        from shutil import rmtree
        try:
            rmtree(self._fs_path)
        except FileNotFoundError as error:
            pass

    def _move_file(self, src, dst):
        from shutil import move
        msg = "Moving from '{}' to '{}'."
        logger.debug(msg.format(src, dst))
        move(src, dst)

    def store_file(self, filename):
        from shutil import move
        try:
            src = self._fn_wd(filename)
            dst = self._fn_fs(filename)
            self._move_file(src, dst)
        except FileNotFoundError as error:
            raise FileNotFoundError(filename) from error

    def restore_file(self, filename):
        try:
            src = self._fn_fs(filename)
            dst = self._fn_wd(filename)
            self._move_file(src, dst)
        except FileNotFoundError as error:
            raise FileNotFoundError(filename) from error

    def store_files(self, pathname = '*', * args):
        import glob
        from itertools import chain
        from os.path import join, split
        for pattern in chain([pathname], args):
            p = join(self._wd_path, pattern)
            logger.debug("Pattern '{}'.".format(p))
            for fn in glob.glob(p):
                base = split(fn)[1]
                self.store_file(base)

    def restore_files(self, pathname = '*', * args):
        import glob
        from itertools import chain
        from os.path import join, split
        for pattern in chain([pathname], args):
            p = join(self._fs_path, pattern)
            logger.debug("Pattern '{}'.".format(p))
            for fn in glob.glob(p):
                base = split(fn)[1]
                self.restore_file(base)
                #self.restore_file(fn)

    def fetch_file(self, storage, fn):
        from shutil import copy2 as copy
        copy(storage._fn_fs(fn), self._fn_fs(fn))
<|endoftext|>


<commit_before>from setuptools import setup
from setuptools import find_packages
import os
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
setup(
    name='pnc-cli',
    packages=find_packages(exclude=['test*']),
    version='1.0.3',
    description='CLI wrapper for PNC REST calls',
    author = 'Tom Hauser',
    author_email = 'thauser@redhat.com',
    url = 'https://github.com/project-ncl/pnc-cli',
    download_url='https://github.com/project-ncl/pnc-cli/tarball/pypi-1.0.3',
    keywords = ['PNC','REST'],
    long_description=README,
    install_requires=[
	"argh >= 0.26.1",
        "requests >= 2.4.3",
        "certifi >= 2015.04.28",
	"urllib3 >= 1.12",
	"six >= 1.9.0",
        "validators >=0.10",
        "tzlocal >= 1.0",
        "pytest >= 2.0"
    ],
    classifiers=[
	'Development Status :: 3 - Alpha',
	'Programming Language :: Python :: 2.7',
	'Programming Language :: Python :: 3'
    ],
    entry_points={'console_scripts': ['pnc = pnc_cli.pnc:main']}
)
<commit_msg>update version to 1.0.4<commit_after>from setuptools import setup
from setuptools import find_packages
import os
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
setup(
    name='pnc-cli',
    packages=find_packages(exclude=['test*']),
    version='1.0.4',
    description='CLI wrapper for PNC REST calls',
    author = 'Tom Hauser',
    author_email = 'thauser@redhat.com',
    url = 'https://github.com/project-ncl/pnc-cli',
    download_url='https://github.com/project-ncl/pnc-cli/tarball/pypi-1.0.4',
    keywords = ['PNC','REST'],
    long_description=README,
    install_requires=[
	"argh >= 0.26.1",
        "requests >= 2.4.3",
        "certifi >= 2015.04.28",
	"urllib3 >= 1.12",
	"six >= 1.9.0",
        "validators >=0.10",
        "tzlocal >= 1.0",
        "pytest >= 2.0"
    ],
    classifiers=[
	'Development Status :: 3 - Alpha',
	'Programming Language :: Python :: 2.7',
	'Programming Language :: Python :: 3'
    ],
    entry_points={'console_scripts': ['pnc = pnc_cli.pnc:main']}
)
<|endoftext|>


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

from setuptools import setup

setup(
    name='cloudify-amqp-influxdb',
    version='4.5a1',
    author='Cloudify',
    author_email='cosmo-admin@gigaspaces.com',
    packages=['amqp_influxdb'],
    entry_points={
        'console_scripts': [
            'cloudify-amqp-influxdb = amqp_influxdb.__main__:main',
        ]
    },
    install_requires=[
        'pika==0.9.14',
        'requests==2.7.0'
    ],
)
<commit_msg>Bump version<commit_after>########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
############

from setuptools import setup

setup(
    name='cloudify-amqp-influxdb',
    version='4.5.dev1',
    author='Cloudify',
    author_email='cosmo-admin@gigaspaces.com',
    packages=['amqp_influxdb'],
    entry_points={
        'console_scripts': [
            'cloudify-amqp-influxdb = amqp_influxdb.__main__:main',
        ]
    },
    install_requires=[
        'pika==0.9.14',
        'requests==2.7.0'
    ],
)
<|endoftext|>