<commit_before>"""
The openpathsampling package contains the OpenPathSampling python library
to do transition interface sampling.

"""
#from distutils.sysconfig import get_config_var
from distutils.core import setup, Extension
from setuptools import setup, Extension
import numpy
import glob
import os
import subprocess

##########################
VERSION = "0.1.0"
ISRELEASED = False
__version__ = VERSION
##########################

################################################################################
# Writing version control information to the module
################################################################################

def git_version():
    # Return the git revision as a string
    # copied from numpy setup.py
    def _minimal_ext_cmd(cmd):
        # construct minimal environment
        env = {}
        for k in ['SYSTEMROOT', 'PATH']:
            v = os.environ.get(k)
            if v is not None:
                env[k] = v
        # LANGUAGE is used on win32
        env['LANGUAGE'] = 'C'
        env['LANG'] = 'C'
        env['LC_ALL'] = 'C'
        out = subprocess.Popen(
            cmd, stdout=subprocess.PIPE, env=env).communicate()[0]
        return out

    try:
        out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
        GIT_REVISION = out.strip().decode('ascii')
    except OSError:
        GIT_REVISION = 'Unknown'

    return GIT_REVISION

def write_version_py(filename='openpathsampling/version.py'):
    cnt = """
# This file is automatically generated by setup.py
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'
git_revision = '%(git_revision)s'
release = %(isrelease)s

if not release:
    version = full_version
"""
    # Adding the git rev number needs to be done inside write_version_py(),
    # otherwise the import of numpy.version messes up the build under Python 3.
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    else:
        GIT_REVISION = 'Unknown'

    if not ISRELEASED:
        FULLVERSION += '.dev-' + GIT_REVISION[:7]

    a = open(filename, 'w')
    try:
        a.write(cnt % {'version': VERSION,
                       'full_version': FULLVERSION,
                       'git_revision': GIT_REVISION,
                       'isrelease': str(ISRELEASED)})
    finally:
        a.close()

################################################################################
# Installation
################################################################################

write_version_py()
# CMBAR = Extension('_pymbar',
#                   sources = ["pymbar/_pymbar.c"],
#                   extra_compile_args=["-std=c99","-O2","-shared","-msse2","-msse3"],
#                   include_dirs = [numpy.get_include(),numpy.get_include()+"/numpy/"]
#                   )

def buildKeywordDictionary():
    from distutils.core import Extension
    setupKeywords = {}
    setupKeywords["name"]              = "openpathsampling"
    setupKeywords["version"]           = "0.0.1-alpha"
    setupKeywords["author"]            = "David W.H. Swenson, Jan-Hendrik Prinz, Peter Bolhuis and John D. Chodera"
    setupKeywords["author_email"]      = "dwhs@hyperblazer.net, jan.prinz@choderalab.org, p.g.bolhuis@uva.nl, choderaj@mskcc.org"
    setupKeywords["license"]           = "GPL 2.0"
    setupKeywords["url"]               = "http://www.openpathsampling.org"
    setupKeywords["download_url"]      = "http://github.com/choderalab/openpathsampling"
    setupKeywords["packages"]          = ['openpathsampling', 'openpathsampling.storage', 'openpathsampling.toy_dynamics', 'openpathsampling.tests']
    setupKeywords["package_dir"]       = {
        'openpathsampling' : 'openpathsampling',
        'openpathsampling.storage' : 'openpathsampling/storage',
        'openpathsampling.toy_dynamics' : 'openpathsampling/toy_dynamics',
        'openpathsampling.tests' : 'openpathsampling/tests'
    }
    #setupKeywords["py_modules"]        = ["pymbar", "timeseries", "testsystems", "confidenceintervals"]
    setupKeywords["data_files"]        = []
    setupKeywords["ext_modules"]       = []
    # setupKeywords["test_suite"]        = "tests" # requires we migrate to setuptools
    setupKeywords["platforms"]         = ["Linux", "Mac OS X", "Windows"]
    setupKeywords["description"]       = "Python implementation of the transition interface sampling methos."
    setupKeywords["requires"]          = ["numpy", "nose"]
    setupKeywords["long_description"]  = """
    OpenPathSampling (http://github.com/choderalab/openpathsampling) is a python library to do transition interface sampling.
    """
    outputString=""
    firstTab     = 40
    secondTab    = 60
    for key in sorted( setupKeywords.iterkeys() ):
         value         = setupKeywords[key]
         outputString += key.rjust(firstTab) + str( value ).rjust(secondTab) + "\n"

    print("%s" % outputString)

    #get_config_var(None)  # this line is necessary to fix the imports Mac OS X
    return setupKeywords

def main():
    setupKeywords = buildKeywordDictionary()
    setup(**setupKeywords)

if __name__ == '__main__':
    main()

<commit_msg>Analysis in setup.py<commit_after>"""
The openpathsampling package contains the OpenPathSampling python library
to do transition interface sampling.

"""
#from distutils.sysconfig import get_config_var
from distutils.core import setup, Extension
from setuptools import setup, Extension
import numpy
import glob
import os
import subprocess

##########################
VERSION = "0.1.0"
ISRELEASED = False
__version__ = VERSION
##########################

################################################################################
# Writing version control information to the module
################################################################################

def git_version():
    # Return the git revision as a string
    # copied from numpy setup.py
    def _minimal_ext_cmd(cmd):
        # construct minimal environment
        env = {}
        for k in ['SYSTEMROOT', 'PATH']:
            v = os.environ.get(k)
            if v is not None:
                env[k] = v
        # LANGUAGE is used on win32
        env['LANGUAGE'] = 'C'
        env['LANG'] = 'C'
        env['LC_ALL'] = 'C'
        out = subprocess.Popen(
            cmd, stdout=subprocess.PIPE, env=env).communicate()[0]
        return out

    try:
        out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
        GIT_REVISION = out.strip().decode('ascii')
    except OSError:
        GIT_REVISION = 'Unknown'

    return GIT_REVISION

def write_version_py(filename='openpathsampling/version.py'):
    cnt = """
# This file is automatically generated by setup.py
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'
git_revision = '%(git_revision)s'
release = %(isrelease)s

if not release:
    version = full_version
"""
    # Adding the git rev number needs to be done inside write_version_py(),
    # otherwise the import of numpy.version messes up the build under Python 3.
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    else:
        GIT_REVISION = 'Unknown'

    if not ISRELEASED:
        FULLVERSION += '.dev-' + GIT_REVISION[:7]

    a = open(filename, 'w')
    try:
        a.write(cnt % {'version': VERSION,
                       'full_version': FULLVERSION,
                       'git_revision': GIT_REVISION,
                       'isrelease': str(ISRELEASED)})
    finally:
        a.close()

################################################################################
# Installation
################################################################################

write_version_py()
# CMBAR = Extension('_pymbar',
#                   sources = ["pymbar/_pymbar.c"],
#                   extra_compile_args=["-std=c99","-O2","-shared","-msse2","-msse3"],
#                   include_dirs = [numpy.get_include(),numpy.get_include()+"/numpy/"]
#                   )

def buildKeywordDictionary():
    from distutils.core import Extension
    setupKeywords = {}
    setupKeywords["name"]              = "openpathsampling"
    setupKeywords["version"]           = "0.0.1-alpha"
    setupKeywords["author"]            = "David W.H. Swenson, Jan-Hendrik Prinz, Peter Bolhuis and John D. Chodera"
    setupKeywords["author_email"]      = "dwhs@hyperblazer.net, jan.prinz@choderalab.org, p.g.bolhuis@uva.nl, choderaj@mskcc.org"
    setupKeywords["license"]           = "GPL 2.0"
    setupKeywords["url"]               = "http://www.openpathsampling.org"
    setupKeywords["download_url"]      = "http://github.com/choderalab/openpathsampling"
    setupKeywords["packages"]          = ['openpathsampling',
                                          'openpathsampling.storage',
                                          'openpathsampling.toy_dynamics',
                                          'openpathsampling.tests',
                                          'openpathsampling.analysis']
    setupKeywords["package_dir"]       = {
        'openpathsampling' : 'openpathsampling',
        'openpathsampling.storage' : 'openpathsampling/storage',
        'openpathsampling.toy_dynamics' : 'openpathsampling/toy_dynamics',
        'openpathsampling.tests' : 'openpathsampling/tests'
    }
    #setupKeywords["py_modules"]        = ["pymbar", "timeseries", "testsystems", "confidenceintervals"]
    setupKeywords["data_files"]        = []
    setupKeywords["ext_modules"]       = []
    # setupKeywords["test_suite"]        = "tests" # requires we migrate to setuptools
    setupKeywords["platforms"]         = ["Linux", "Mac OS X", "Windows"]
    setupKeywords["description"]       = "Python implementation of the transition interface sampling methos."
    setupKeywords["requires"]          = ["numpy", "nose"]
    setupKeywords["long_description"]  = """
    OpenPathSampling (http://github.com/choderalab/openpathsampling) is a python library to do transition interface sampling.
    """
    outputString=""
    firstTab     = 40
    secondTab    = 60
    for key in sorted( setupKeywords.iterkeys() ):
         value         = setupKeywords[key]
         outputString += key.rjust(firstTab) + str( value ).rjust(secondTab) + "\n"

    print("%s" % outputString)

    #get_config_var(None)  # this line is necessary to fix the imports Mac OS X
    return setupKeywords

def main():
    setupKeywords = buildKeywordDictionary()
    setup(**setupKeywords)

if __name__ == '__main__':
    main()

<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import tilepaper

requirements = ['PyYAML==3.11', 'filemagic==1.6', 'Pillow==3.0.0']

setup(name='tilepaper',
      version=tilepaper.__version__,
      author='Sam Rudge',
      author_email='sam@codesam.co.uk',
      packages=find_packages(),
      install_requires=requirements,
      include_package_data=True,
      zip_safe=False,
      url="https://github.com/samarudge/tilepaper",
      licence="MIT",
      entry_points="""
[console_scripts]
tilepaper = tilepaper.cli:run
""",
      classifiers=[
          'Environment :: Console',
          'Intended Audience :: End Users/Desktop',
          'License :: OSI Approved :: MIT License',
          'Topic :: Multimedia :: Graphics',
          'Topic :: Utilities',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ]
      )
<commit_msg>Adding description to setup.py<commit_after>from setuptools import setup, find_packages
import tilepaper

requirements = ['PyYAML==3.11', 'filemagic==1.6', 'Pillow==3.0.0']

setup(name='tilepaper',
      version=tilepaper.__version__,
      author='Sam Rudge',
      author_email='sam@codesam.co.uk',
      description='Generate OS/X style tiled images',
      packages=find_packages(),
      install_requires=requirements,
      include_package_data=True,
      zip_safe=False,
      url="https://github.com/samarudge/tilepaper",
      licence="MIT",
      entry_points="""
[console_scripts]
tilepaper = tilepaper.cli:run
""",
      classifiers=[
          'Environment :: Console',
          'Intended Audience :: End Users/Desktop',
          'License :: OSI Approved :: MIT License',
          'Topic :: Multimedia :: Graphics',
          'Topic :: Utilities',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ]
      )
<|endoftext|>


<commit_before>from setuptools import setup
import warnings

setup(name='spectralspace',
      version='1.',
      description='Spectral space dimensionality in APOGEE',
      author='Natalie Price-Jones',
      author_email='price-jones@astro.utoronto.ca',
      url='https://github.com/NatalieP-J/spectralspace',
      package_dir = {'spectralspace/': ''},
      packages=['spectralspace','spectralspace/examples','spectralspace/data','spectralspace/analysis','spectralspace/sample'],
      package_data={'spectralspace/data':['clusterdata/elemVariations_DR12_M67.sav',
                                          'clusterdata/aj485195t4_mrt.txt',
                                          'clusterdata/aj509073t2_mrt.txt']},
      dependency_links = ['https://github.com/jobovy/apogee/tarball/master#egg=apogee',
                          'https://github.com/NatalieP-J/empca/tarball/master#egg=empca',
                          'https://github.com/jobovy/galpy/tarball/master#egg=galpy',
                          'https://github.com/jobovy/isodist/tarball/master#egg=isodist'],
      install_requires=['numpy','scipy','matplotlib','jupyter','tqdm','astropy',
                        'statsmodels','scikit-learn','apogee','galpy','isodist']
      )

warnings.warn('''APOGEE installation requires environment variables to be set: SDSS_LOCAL_SAS_MIRROR=<path to file storage>, RESULTS_VERS=v603, APOGEE_APOKASC_REDUX=v7.3''')
<commit_msg>Modified dependencies<commit_after>from setuptools import setup
import warnings

setup(name='spectralspace',
      version='1.',
      description='Spectral space dimensionality in APOGEE',
      author='Natalie Price-Jones',
      author_email='price-jones@astro.utoronto.ca',
      url='https://github.com/NatalieP-J/spectralspace',
      package_dir = {'spectralspace/': ''},
      packages=['spectralspace','spectralspace/examples','spectralspace/data','spectralspace/analysis','spectralspace/sample'],
      package_data={'spectralspace/data':['clusterdata/elemVariations_DR12_M67.sav',
                                          'clusterdata/aj485195t4_mrt.txt',
                                          'clusterdata/aj509073t2_mrt.txt']},
      dependency_links = ['https://github.com/jobovy/apogee/tarball/master#egg=apogee',
                          'https://github.com/jobovy/galpy/tarball/master#egg=galpy',
                          'https://github.com/jobovy/isodist/tarball/master#egg=isodist'],
      install_requires=['numpy','scipy','matplotlib','tqdm','astropy',
                        'apogee','galpy','isodist','scikit-learn','statsmodels']
      )

warnings.warn('''APOGEE installation requires environment variables to be set: SDSS_LOCAL_SAS_MIRROR=<path to file storage>, RESULTS_VERS=v603, APOGEE_APOKASC_REDUX=v7.3''')
<|endoftext|>


<commit_before>########
# Copyright (c) 2013 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-openstack-provider',
    version='3.1ga',
    author='ran',
    author_email='ran@gigaspaces.com',
    packages=['cloudify_openstack'],
    license='LICENSE',
    description='Cloudify OpenStack provider',
    package_data={'cloudify_openstack': ['cloudify-config.yaml',
                                         'cloudify-config.defaults.yaml']},
    install_requires=[
        'python-novaclient==2.17.0',
        'python-keystoneclient==0.7.1',
        'python-neutronclient==2.3.9',
        'IPy==0.81',
        'cloudify==3.1ga',
    ]
)
<commit_msg>Bump version to 3.1<commit_after>########
# Copyright (c) 2013 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-openstack-provider',
    version='3.1',
    author='ran',
    author_email='ran@gigaspaces.com',
    packages=['cloudify_openstack'],
    license='LICENSE',
    description='Cloudify OpenStack provider',
    package_data={'cloudify_openstack': ['cloudify-config.yaml',
                                         'cloudify-config.defaults.yaml']},
    install_requires=[
        'python-novaclient==2.17.0',
        'python-keystoneclient==0.7.1',
        'python-neutronclient==2.3.9',
        'IPy==0.81',
        'cloudify==3.1',
    ]
)
<|endoftext|>


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

def readme():
    with open('README.rst') as f:
        return f.read()

setup(name='addic7ed',
      version='1.0-dev0',
      description='A commandline access to addic7ed subtitles',
      long_description=readme(),
      url='https://github.com/BenoitZugmeyer/addic7ed-cli/',
      author='Benoît Zugmeyer',
      author_email='bzugmeyer@gmail.com',
      license='Expat',
      packages=['addic7ed'],
      install_requires=[
          'pyquery>=1.2.4',
          'requests>=2.2.1',
      ],
      entry_points={
          'console_scripts': ['addic7ed=addic7ed.__init__:main'],
      },
      test_suite='nose.collector',
      tests_require=['nose'],
      zip_safe=True,
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: End Users/Desktop',
          'License :: OSI Approved :: MIT License',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: POSIX',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Topic :: Multimedia',
      ],
      )
<commit_msg>Version bump<commit_after># -*- coding: utf-8 -*-
from setuptools import setup

def readme():
    with open('README.rst') as f:
        return f.read()

setup(name='addic7ed',
      version='1.0-beta0',
      description='A commandline access to addic7ed subtitles',
      long_description=readme(),
      url='https://github.com/BenoitZugmeyer/addic7ed-cli/',
      author='Benoît Zugmeyer',
      author_email='bzugmeyer@gmail.com',
      license='Expat',
      packages=['addic7ed'],
      install_requires=[
          'pyquery>=1.2.4',
          'requests>=2.2.1',
      ],
      entry_points={
          'console_scripts': ['addic7ed=addic7ed.__init__:main'],
      },
      test_suite='nose.collector',
      tests_require=['nose'],
      zip_safe=True,
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: End Users/Desktop',
          'License :: OSI Approved :: MIT License',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: POSIX',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Topic :: Multimedia',
      ],
      )
<|endoftext|>


<commit_before>#
#    ICRAR - International Centre for Radio Astronomy Research
#    (c) UWA - The University of Western Australia, 2016
#    Copyright by UWA (in the framework of the ICRAR)
#    All rights reserved
#
#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Lesser General Public
#    License as published by the Free Software Foundation; either
#    version 2.1 of the License, or (at your option) any later version.
#
#    This library is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
#    MA 02111-1307  USA
#

import os
import subprocess
import sys
import sysconfig

from setuptools import find_packages
from setuptools import setup
from setuptools.command.install import install

# Version information
# We do like numpy: we have a major/minor/patch hand-written version written
# here. If we find the git commit (either via "git" command execution or in a
# dlg/version.py file) we append it to the VERSION later.
# The RELEASE flag allows us to create development versions properly supported
# by setuptools/pkg_resources or "final" versions.
MAJOR   = 0
MINOR   = 8
PATCH   = 0
RELEASE = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, PATCH)
VERSION_FILE = 'dlg/version.py'
PTH_FILE = 'lib64_dist.pth'

def get_git_version():
    out = subprocess.check_output(['git', 'rev-parse', 'HEAD'])
    return out.strip().decode('ascii')

def get_version_info():
    git_version = 'Unknown'
    if os.path.exists('.git'):
        git_version = get_git_version()
    full_version = VERSION
    if not RELEASE:
        full_version = '%s.dev0+%s' % (VERSION, git_version[:7])
    return full_version, git_version

def write_version_info():
    tpl = """
# THIS FILE IS GENERATED BY DALIUGE'S SETUP.PY
# DO NOT MODIFY BY HAND
version = '%(version)s'
git_version = '%(git_version)s'
full_version = '%(full_version)s'
is_release = %(is_release)s

if not is_release:
    version = full_version
"""
    full_version, git_version = get_version_info()
    with open(VERSION_FILE, 'w') as f:
        info = tpl % {'version': VERSION,
                      'full_version': full_version,
                      'git_version': git_version,
                      'is_release': RELEASE}
        f.write(info.strip())

# Every time we overwrite the version file
write_version_info()

# HACK - HACK - HACK - HACK
class lib64_path(install):
    def write_pth_file(self):
        """
        This is a hack to get around some distributions installing stuff into
        lib64/python-x.x/dist-packages
        """
        lp = os.path.abspath(os.path.curdir)
        with open(PTH_FILE, 'w') as f:
            f.write(lp.replace('/lib/', '/lib64/'))

    def initialize_options(self):
        install.initialize_options(self)
        self.build_scripts = None

    def finalize_options(self):
        install.finalize_options(self)
        self.set_undefined_options('build', ('build_scripts', 'build_scripts'))

    def run(self):
        install.run(self)
        lp = sysconfig.get_path('stdlib')
        with open(PTH_FILE, 'w') as f:
            f.write('{0}/dist-packages'.format(lp))
        install.copy_file(self, PTH_FILE, os.path.join(self.install_lib,
                                                       PTH_FILE))

# HACK - HACK - HACK - HACK
#
# We externally make sure that numpy is installed because spead2 needs it there
# at compile time (and therefore at runtime too).

# An initial solution for this problem was to add numpy to the setup_requires
# argument of spead2's setup invocation. This solves the problem of compiling
# numpy, but requires some extra code to make numpy's include directory
# (which isn't installed in a standard location, and therefore must be queried
# to numpy itself via numpy.include_dir()) available to spead2's setup in order
# to build its C extensions correctly. The main drawback from this solution is
# that numpy's egg location remains inside the spead2's source code tree (in the
# root of the tree when using setuptools < 7, inside the .eggs/ directory when
# using setuptools>=7). This was reported in setuptool issues #209 and #391, but
# still remains an issue. Although one could live with such an installation, it
# doesn't sound ideal at all since the software is not installed when one would
# expect it to be; also permissions-based problems could arise.
#
# For the time being I'm choosing instead to simply install numpy via a pip
# command-line invocation. It will avoid any numpy mingling by spead2, and will
# return quickly if it has been already installed
#
# HACK - HACK - HACK - HACK
try:
    subprocess.check_call(['pip', 'install', 'numpy'])
except subprocess.CalledProcessError:
    try:
        subprocess.check_call(['easy_install', 'numpy'])
    except subprocess.CalledProcessError:
        raise Exception("Couldn't install numpy manually, sorry :(")

# Core requirements of DALiuGE
# Keep alpha-sorted PLEASE!
install_requires = [
    "boto3",
    "bottle",
    "configobj",
    "crc32c",
    "dill",
    "docker",
    "lockfile",
    "metis>=0.2a3",
    # 0.10.6 builds correctly with old (<=3.10) Linux kernels
    "netifaces>=0.10.6",
    "paramiko",
    "psutil",
    "pyswarm",
    "python-daemon",
    "pyzmq",
    "scp",
    # 1.10 contains an important race-condition fix on lazy-loaded modules
    'six>=1.10',
    # 0.6 brings python3 support plus other fixes
    "zerorpc >= 0.6"
]
# Keep alpha-sorted PLEASE!

# Python 3.6 is only supported in NetworkX 2 and above
# But we are not compatible with 2.4 yet, so we need to constrain that
networkx_dep = 'networkx<2.4'
if sys.version_info >= (3, 6, 0):
    networkx_dep += ",>=2.0"
install_requires.append(networkx_dep)

# Python 2 support has been dropped in zeroconf 0.20.
# Also, 0.19.0 requires netifaces < 0.10.5, exactly the opposite of what *we* need
# Also, 0.21.0 erroneously tags 3.4 as supported, while in fact it isn't
# (see https://github.com/jstasiak/python-zeroconf/issues/139 for details).
# We provided a fix for that, so from 0.21.1 is already good.
if sys.version_info[:2] == (2, 7):
    install_requires.append("zeroconf == 0.19.1")
elif sys.version_info[:2] <= (3, 4):
    install_requires.append("zeroconf != 0.21.0")
else:
    install_requires.append("zeroconf >= 0.19.1")

# Extra requirements that are not needed by your every day daliuge installation
extra_requires = {
    # spead is required only for a specific app and its test, which we
    # skip anyway if spead is not found
    'spead': ["spead2==0.4.0"],

    # Pyro4 and RPyC are semi-supported RPC alternatives
    # (while zerorpc is the default)
    'pyro': ['Pyro4>=4.47'],  # 4.47 contains a fix we contributed
    'rpyc': ['rpyc'],

    # drive-casa is used by some manual tests under test/integrate
    'drive-casa': ["drive-casa>0.7"],

    # MPI support (MPIApp drops and HPC experiments) requires mpi4py
    'MPI': ['mpi4py']
}

setup(
      name='daliuge',
      version=get_version_info()[0],
      description=u'Data Activated \uF9CA (flow) Graph Engine - DALiuGE',
      long_description="The SKA-SDK prototype for the Execution Framework component",
      author='ICRAR DIA Group',
      author_email='dfms_prototype@googlegroups.com',
      url='https://github.com/ICRAR/daliuge',
      license="LGPLv2+",
      packages=find_packages(exclude=('test', 'test.*', 'fabfile')),
      package_data={
        'dlg.apps': ['dlg_app.h'],
        'dlg.manager': ['web/*.html', 'web/static/css/*.css',
                        'web/static/fonts/*', 'web/static/js/*.js',
                        'web/static/js/d3/*'],
        'dlg.dropmake': ['web/lg_editor.html', 'web/*.css', 'web/*.js',
                         'web/*.json', 'web/*.map',
                         'web/img/jsoneditor-icons.png', 'web/pg_viewer.html',
                         'web/matrix_vis.html',
                         'lib/libmetis.*'],
        'test.dropmake': ['logical_graphs/*.json'],
        'test.apps': ['dynlib_example.c']
      },
      install_requires=install_requires,
      extras_require=extra_requires,
      test_suite="test",
      entry_points={
          'console_scripts': [
              'dlg=dlg.tool:run',  # One tool to rule them all
          ],
      },
      cmdclass={
            'install': lib64_path
            },
)
<commit_msg>Added the run2 interface to pass back python objects<commit_after>#
#    ICRAR - International Centre for Radio Astronomy Research
#    (c) UWA - The University of Western Australia, 2016
#    Copyright by UWA (in the framework of the ICRAR)
#    All rights reserved
#
#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Lesser General Public
#    License as published by the Free Software Foundation; either
#    version 2.1 of the License, or (at your option) any later version.
#
#    This library is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
#    MA 02111-1307  USA
#

import os
import subprocess
import sys
import sysconfig

from setuptools import find_packages
from setuptools import setup
from setuptools.command.install import install

# Version information
# We do like numpy: we have a major/minor/patch hand-written version written
# here. If we find the git commit (either via "git" command execution or in a
# dlg/version.py file) we append it to the VERSION later.
# The RELEASE flag allows us to create development versions properly supported
# by setuptools/pkg_resources or "final" versions.
MAJOR   = 0
MINOR   = 8
PATCH   = 1
RELEASE = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, PATCH)
VERSION_FILE = 'dlg/version.py'
PTH_FILE = 'lib64_dist.pth'

def get_git_version():
    out = subprocess.check_output(['git', 'rev-parse', 'HEAD'])
    return out.strip().decode('ascii')

def get_version_info():
    git_version = 'Unknown'
    if os.path.exists('.git'):
        git_version = get_git_version()
    full_version = VERSION
    if not RELEASE:
        full_version = '%s.dev0+%s' % (VERSION, git_version[:7])
    return full_version, git_version

def write_version_info():
    tpl = """
# THIS FILE IS GENERATED BY DALIUGE'S SETUP.PY
# DO NOT MODIFY BY HAND
version = '%(version)s'
git_version = '%(git_version)s'
full_version = '%(full_version)s'
is_release = %(is_release)s

if not is_release:
    version = full_version
"""
    full_version, git_version = get_version_info()
    with open(VERSION_FILE, 'w') as f:
        info = tpl % {'version': VERSION,
                      'full_version': full_version,
                      'git_version': git_version,
                      'is_release': RELEASE}
        f.write(info.strip())

# Every time we overwrite the version file
write_version_info()

# HACK - HACK - HACK - HACK
class lib64_path(install):
    def write_pth_file(self):
        """
        This is a hack to get around some distributions installing stuff into
        lib64/python-x.x/dist-packages
        """
        lp = os.path.abspath(os.path.curdir)
        with open(PTH_FILE, 'w') as f:
            f.write(lp.replace('/lib/', '/lib64/'))

    def initialize_options(self):
        install.initialize_options(self)
        self.build_scripts = None

    def finalize_options(self):
        install.finalize_options(self)
        self.set_undefined_options('build', ('build_scripts', 'build_scripts'))

    def run(self):
        install.run(self)
        lp = sysconfig.get_path('stdlib')
        with open(PTH_FILE, 'w') as f:
            f.write('{0}/dist-packages'.format(lp))
        install.copy_file(self, PTH_FILE, os.path.join(self.install_lib,
                                                       PTH_FILE))

# HACK - HACK - HACK - HACK
#
# We externally make sure that numpy is installed because spead2 needs it there
# at compile time (and therefore at runtime too).

# An initial solution for this problem was to add numpy to the setup_requires
# argument of spead2's setup invocation. This solves the problem of compiling
# numpy, but requires some extra code to make numpy's include directory
# (which isn't installed in a standard location, and therefore must be queried
# to numpy itself via numpy.include_dir()) available to spead2's setup in order
# to build its C extensions correctly. The main drawback from this solution is
# that numpy's egg location remains inside the spead2's source code tree (in the
# root of the tree when using setuptools < 7, inside the .eggs/ directory when
# using setuptools>=7). This was reported in setuptool issues #209 and #391, but
# still remains an issue. Although one could live with such an installation, it
# doesn't sound ideal at all since the software is not installed when one would
# expect it to be; also permissions-based problems could arise.
#
# For the time being I'm choosing instead to simply install numpy via a pip
# command-line invocation. It will avoid any numpy mingling by spead2, and will
# return quickly if it has been already installed
#
# HACK - HACK - HACK - HACK
try:
    subprocess.check_call(['pip', 'install', 'numpy'])
except subprocess.CalledProcessError:
    try:
        subprocess.check_call(['easy_install', 'numpy'])
    except subprocess.CalledProcessError:
        raise Exception("Couldn't install numpy manually, sorry :(")

# Core requirements of DALiuGE
# Keep alpha-sorted PLEASE!
install_requires = [
    "boto3",
    "bottle",
    "configobj",
    "crc32c",
    "dill",
    "docker",
    "lockfile",
    "metis>=0.2a3",
    # 0.10.6 builds correctly with old (<=3.10) Linux kernels
    "netifaces>=0.10.6",
    "paramiko",
    "psutil",
    "pyswarm",
    "python-daemon",
    "pyzmq",
    "scp",
    # 1.10 contains an important race-condition fix on lazy-loaded modules
    'six>=1.10',
    # 0.6 brings python3 support plus other fixes
    "zerorpc >= 0.6"
]
# Keep alpha-sorted PLEASE!

# Python 3.6 is only supported in NetworkX 2 and above
# But we are not compatible with 2.4 yet, so we need to constrain that
networkx_dep = 'networkx<2.4'
if sys.version_info >= (3, 6, 0):
    networkx_dep += ",>=2.0"
install_requires.append(networkx_dep)

# Python 2 support has been dropped in zeroconf 0.20.
# Also, 0.19.0 requires netifaces < 0.10.5, exactly the opposite of what *we* need
# Also, 0.21.0 erroneously tags 3.4 as supported, while in fact it isn't
# (see https://github.com/jstasiak/python-zeroconf/issues/139 for details).
# We provided a fix for that, so from 0.21.1 is already good.
if sys.version_info[:2] == (2, 7):
    install_requires.append("zeroconf == 0.19.1")
elif sys.version_info[:2] <= (3, 4):
    install_requires.append("zeroconf != 0.21.0")
else:
    install_requires.append("zeroconf >= 0.19.1")

# Extra requirements that are not needed by your every day daliuge installation
extra_requires = {
    # spead is required only for a specific app and its test, which we
    # skip anyway if spead is not found
    'spead': ["spead2==0.4.0"],

    # Pyro4 and RPyC are semi-supported RPC alternatives
    # (while zerorpc is the default)
    'pyro': ['Pyro4>=4.47'],  # 4.47 contains a fix we contributed
    'rpyc': ['rpyc'],

    # drive-casa is used by some manual tests under test/integrate
    'drive-casa': ["drive-casa>0.7"],

    # MPI support (MPIApp drops and HPC experiments) requires mpi4py
    'MPI': ['mpi4py']
}

setup(
      name='daliuge',
      version=get_version_info()[0],
      description=u'Data Activated \uF9CA (flow) Graph Engine - DALiuGE',
      long_description="The SKA-SDK prototype for the Execution Framework component",
      author='ICRAR DIA Group',
      author_email='dfms_prototype@googlegroups.com',
      url='https://github.com/ICRAR/daliuge',
      license="LGPLv2+",
      packages=find_packages(exclude=('test', 'test.*', 'fabfile')),
      package_data={
        'dlg.apps': ['dlg_app.h'],
        'dlg.manager': ['web/*.html', 'web/static/css/*.css',
                        'web/static/fonts/*', 'web/static/js/*.js',
                        'web/static/js/d3/*'],
        'dlg.dropmake': ['web/lg_editor.html', 'web/*.css', 'web/*.js',
                         'web/*.json', 'web/*.map',
                         'web/img/jsoneditor-icons.png', 'web/pg_viewer.html',
                         'web/matrix_vis.html',
                         'lib/libmetis.*'],
        'test.dropmake': ['logical_graphs/*.json'],
        'test.apps': ['dynlib_example.c']
      },
      install_requires=install_requires,
      extras_require=extra_requires,
      test_suite="test",
      entry_points={
          'console_scripts': [
              'dlg=dlg.tool:run',  # One tool to rule them all
          ],
      },
      cmdclass={
            'install': lib64_path
            },
)
<|endoftext|>


<commit_before>"""
blinker
~~~~~~~

"""
from distutils.tools import setup

setup(name="blinker",
      version="0.8",
      packages=['blinker'],
      author='Jason Kirtland',
      author_email='jek@discorporate.us',
      description='fast and simple object-to-object and broadcast signalling',
      keywords='signal emit events broadcast',
      long_description=__doc__,
      license='MIT License',
      url='http://discorporate.us/jek/projects/blinker/',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.4',
          'Programming Language :: Python :: 2.5',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          # 'Programming Language :: Python :: 3.1',
          'Topic :: Software Development :: Libraries'
          'Topic :: Utilities',
          ],
)
<commit_msg>Python 3 porting note.<commit_after>"""
blinker
~~~~~~~

"""
from distutils.tools import setup

setup(name="blinker",
      version="0.8",
      packages=['blinker'],
      author='Jason Kirtland',
      author_email='jek@discorporate.us',
      description='fast and simple object-to-object and broadcast signalling',
      keywords='signal emit events broadcast',
      long_description=__doc__,
      license='MIT License',
      url='http://discorporate.us/jek/projects/blinker/',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.4',
          'Programming Language :: Python :: 2.5',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          # 'Programming Language :: Python :: 3.1', # _saferef fails :(
          'Topic :: Software Development :: Libraries'
          'Topic :: Utilities',
          ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
"""
PyTest-BDD
==========

Implements a subset of Gherkin language for the behavior-driven development and
automated testing. Benefits from the pytest and its dependency injection pattern
for the true just enough specifications and maximal reusability of the BDD
definitions.

Example
```````

publish_article.feature:
.. code:: feature

    Scenario: Publishing the article
        Given I'm an author user
        And I have an article
        When I go to the article page
        And I press the publish button
        Then I should not see the error message
        And the article should be published  # Note: will query the database

test_publish_article.py:
.. code:: python

    from pytest_bdd import scenario, given, when, then

    test_publish = scenario('publish_article.feature', 'Publishing the article')

    @given('I have an article')
    def article(author):
        return create_test_article(author=author)

    @when('I go to the article page')
    def go_to_article(article, browser):
        browser.visit(urljoin(browser.url, '/manage/articles/{0}/'.format(article.id)))

    @when('I press the publish button')
    def publish_article(browser):
        browser.find_by_css('button[name=publish]').first.click()

    @then('I should not see the error message')
    def no_error_message(browser):
        with pytest.raises(ElementDoesNotExist):
            browser.find_by_css('.message.error').first

    @then('And the article should be published')
    def article_is_published(article):
        article.refresh()  # Refresh the object in the SQLAlchemy session
        assert article.is_published

Installation
````````````

.. code:: bash

    $ pip install pytest-bdd

Links
`````

* `website <https://github.com/olegpidsadnyi/pytest-bdd>`_
* `documentation <https://pytest-bdd.readthedocs.org/en/latest/>`_

"""
import sys

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

class PyTest(TestCommand):

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

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)

setup(
    name='pytest-bdd',
    description='BDD for pytest',
    long_description=__doc__,
    author='Oleg Pidsadnyi',
    license='MIT license',
    author_email='oleg.podsadny@gmail.com',
    url='https://github.com/olegpidsadnyi/pytest-bdd',
    version='0.4.3',
    classifiers=[
        'Development Status :: 6 - Mature',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: MacOS :: MacOS X',
        'Topic :: Software Development :: Testing',
        'Topic :: Software Development :: Libraries',
        'Topic :: Utilities',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3'
    ] + [('Programming Language :: Python :: %s' % x) for x in '2.6 2.7 3.0 3.1 3.2 3.3'.split()],
    cmdclass={'test': PyTest},
    install_requires=[
        'pytest',
    ],
    # the following makes a plugin available to py.test
    entry_points={
        'pytest11': [
            'pytest-bdd = pytest_bdd.plugin',
        ]
    },
    tests_require=['mock'],
    packages=['pytest_bdd'],
)
<commit_msg>fixing long description<commit_after>#!/usr/bin/env python
"""
PyTest-BDD
==========

Implements a subset of Gherkin language for the behavior-driven development and
automated testing. Benefits from the pytest and its dependency injection pattern
for the true just enough specifications and maximal reusability of the BDD
definitions.

Example
```````

publish_article.feature:

.. code:: gherkin

    Scenario: Publishing the article
        Given I'm an author user
        And I have an article
        When I go to the article page
        And I press the publish button
        Then I should not see the error message
        And the article should be published  # Note: will query the database

test_publish_article.py:

.. code:: python

    from pytest_bdd import scenario, given, when, then

    test_publish = scenario('publish_article.feature', 'Publishing the article')

    @given('I have an article')
    def article(author):
        return create_test_article(author=author)

    @when('I go to the article page')
    def go_to_article(article, browser):
        browser.visit(urljoin(browser.url, '/manage/articles/{0}/'.format(article.id)))

    @when('I press the publish button')
    def publish_article(browser):
        browser.find_by_css('button[name=publish]').first.click()

    @then('I should not see the error message')
    def no_error_message(browser):
        with pytest.raises(ElementDoesNotExist):
            browser.find_by_css('.message.error').first

    @then('And the article should be published')
    def article_is_published(article):
        article.refresh()  # Refresh the object in the SQLAlchemy session
        assert article.is_published

Installation
````````````

.. code:: bash

    $ pip install pytest-bdd

Links
`````

* `website <https://github.com/olegpidsadnyi/pytest-bdd>`_
* `documentation <https://pytest-bdd.readthedocs.org/en/latest/>`_

"""
import sys

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

class PyTest(TestCommand):

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

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)

setup(
    name='pytest-bdd',
    description='BDD for pytest',
    long_description=__doc__,
    author='Oleg Pidsadnyi',
    license='MIT license',
    author_email='oleg.podsadny@gmail.com',
    url='https://github.com/olegpidsadnyi/pytest-bdd',
    version='0.4.3',
    classifiers=[
        'Development Status :: 6 - Mature',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: MacOS :: MacOS X',
        'Topic :: Software Development :: Testing',
        'Topic :: Software Development :: Libraries',
        'Topic :: Utilities',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3'
    ] + [('Programming Language :: Python :: %s' % x) for x in '2.6 2.7 3.0 3.1 3.2 3.3'.split()],
    cmdclass={'test': PyTest},
    install_requires=[
        'pytest',
    ],
    # the following makes a plugin available to py.test
    entry_points={
        'pytest11': [
            'pytest-bdd = pytest_bdd.plugin',
        ]
    },
    tests_require=['mock'],
    packages=['pytest_bdd'],
)
<|endoftext|>


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

import setuptools

# Package metadata.

name = "sqlalchemy-spanner"
description = "SQLAlchemy dialect integrated into Cloud Spanner database"
dependencies = ["sqlalchemy>=1.1.13, <=1.3.23", "google-cloud-spanner>=3.0.0"]

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

# Determine which namespaces are needed.
namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")

setuptools.setup(
    author="Google LLC",
    author_email="cloud-spanner-developers@googlegroups.com",
    classifiers=["Intended Audience :: Developers"],
    description=description,
    entry_points={
        "sqlalchemy.dialects": [
            "spanner = google.cloud.sqlalchemy_spanner:SpannerDialect"
        ]
    },
    install_requires=dependencies,
    name=name,
    namespace_packages=namespaces,
    packages=packages,
    url="https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy",
    version="0.1",
    include_package_data=True,
    zip_safe=False,
)
<commit_msg>feat: set higher python-spanner requirements (#38)<commit_after># Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import setuptools

# Package metadata.

name = "sqlalchemy-spanner"
description = "SQLAlchemy dialect integrated into Cloud Spanner database"
dependencies = ["sqlalchemy>=1.1.13, <=1.3.23", "google-cloud-spanner>=3.3.0"]

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

# Determine which namespaces are needed.
namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")

setuptools.setup(
    author="Google LLC",
    author_email="cloud-spanner-developers@googlegroups.com",
    classifiers=["Intended Audience :: Developers"],
    description=description,
    entry_points={
        "sqlalchemy.dialects": [
            "spanner = google.cloud.sqlalchemy_spanner:SpannerDialect"
        ]
    },
    install_requires=dependencies,
    name=name,
    namespace_packages=namespaces,
    packages=packages,
    url="https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy",
    version="0.1",
    include_package_data=True,
    zip_safe=False,
)
<|endoftext|>


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

setup(
    name='tweetable',
    version='1.0',
    maintainer="Max Arnold",
    url="https://github.com/max-arnold/markdown-tweetable",
    packages=['tweetable'],
    install_requires=['Markdown >= 2.0'],
    license='LICENSE.md',
    description='Tweetable quotes for Python-Markdown.',
    keywords=["markup", "markdown", "plugin", "quotes", "share", "tweet", "social"],
    classifiers=[
        "Programming Language :: Python",
        "Development Status :: 4 - Beta",
        "Environment :: Plugins",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT LIcense",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Text Processing :: Markup",
        ],
    long_description=open('README.md').read(),
)
<commit_msg>add maintainer email<commit_after># -*- coding: utf-8 -*-
from distutils.core import setup

setup(
    name='tweetable',
    version='1.0',
    maintainer="Max Arnold",
    maintainer_email="arnold.maxim@gmail.com",
    url="https://github.com/max-arnold/markdown-tweetable",
    packages=['tweetable'],
    install_requires=['Markdown >= 2.0'],
    license='LICENSE.md',
    description='Tweetable quotes for Python-Markdown.',
    keywords=["markup", "markdown", "plugin", "quotes", "share", "tweet", "social"],
    classifiers=[
        "Programming Language :: Python",
        "Development Status :: 4 - Beta",
        "Environment :: Plugins",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT LIcense",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Text Processing :: Markup",
        ],
    long_description=open('README.md').read(),
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
        name='raii_logging',
        version='1.0.0',
        packages=[
            'wcpan',
            'wcpan.worker',
        ],
        install_requires=[
            'tornado',
            'wcpan.logger',
        ],
        classifiers=[
            'Programming Language :: Python :: 3 :: Only',
            'Programming Language :: Python :: 3.5',
        ])
<commit_msg>update<commit_after>from setuptools import setup

setup(
        name='raii_logging',
        version='1.0.0.dev1',
        packages=[
            'wcpan',
            'wcpan.worker',
        ],
        install_requires=[
            'tornado',
            'wcpan.logger',
        ],
        classifiers=[
            'Programming Language :: Python :: 3 :: Only',
            'Programming Language :: Python :: 3.5',
        ])
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='jinja-to-js',
    version='0.0.1',
    description="Turns Jinja templates into Underscore templates that can be run in the browser.",
    keywords='jinja underscore html',
    author='Jon Bretman',
    author_email='jon.bretman@gmail.com',
    url='http://github.com/jonbretman/jinja-to-js/',
    license='Python',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        'jinja2',
        'six'
    ],
    entry_points={
        'console_scripts': [
            'jinja_to_js = jinja_to_js.__main__:main',
        ]
    }
)
<commit_msg>0.0.2<commit_after>from setuptools import setup, find_packages

setup(
    name='jinja-to-js',
    version='0.0.2',
    description="Turns Jinja templates into Underscore templates that can be run in the browser.",
    keywords='jinja underscore html',
    author='Jon Bretman',
    author_email='jon.bretman@gmail.com',
    url='http://github.com/jonbretman/jinja-to-js/',
    license='Python',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        'jinja2',
        'six'
    ],
    entry_points={
        'console_scripts': [
            'jinja_to_js = jinja_to_js.__main__:main',
        ]
    }
)
<|endoftext|>


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

"""Installer for rstcheck."""

import ast
import io

import setuptools

def version():
    """Return version string."""
    with io.open('rstcheck.py', encoding='utf-8') as input_file:
        for line in input_file:
            if line.startswith('__version__'):
                return ast.parse(line).body[0].value.s

with io.open('README.rst', encoding='utf-8') as readme:
    setuptools.setup(
        name='rstcheck',
        version=version(),
        url='https://github.com/myint/rstcheck',
        description='Checks syntax of reStructuredText and code blocks nested '
                    'within it',
        long_description=readme.read(),
        classifiers=[
            'License :: OSI Approved :: MIT License',
            'Programming Language :: Python',
            'Programming Language :: Python :: 2.7',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
            'Topic :: Software Development :: Quality Assurance',
        ],
        keywords='restructuredtext,lint,check,pypi,readme,rst,analyze',
        py_modules=['rstcheck'],
        entry_points={'console_scripts': ['rstcheck = rstcheck:main']},
        install_requires=['docutils >= 0.8'])
<commit_msg>Set minimum docutils requirement<commit_after>#!/usr/bin/env python

"""Installer for rstcheck."""

import ast
import io

import setuptools

def version():
    """Return version string."""
    with io.open('rstcheck.py', encoding='utf-8') as input_file:
        for line in input_file:
            if line.startswith('__version__'):
                return ast.parse(line).body[0].value.s

with io.open('README.rst', encoding='utf-8') as readme:
    setuptools.setup(
        name='rstcheck',
        version=version(),
        url='https://github.com/myint/rstcheck',
        description='Checks syntax of reStructuredText and code blocks nested '
                    'within it',
        long_description=readme.read(),
        classifiers=[
            'License :: OSI Approved :: MIT License',
            'Programming Language :: Python',
            'Programming Language :: Python :: 2.7',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
            'Topic :: Software Development :: Quality Assurance',
        ],
        keywords='restructuredtext,lint,check,pypi,readme,rst,analyze',
        py_modules=['rstcheck'],
        entry_points={'console_scripts': ['rstcheck = rstcheck:main']},
        install_requires=['docutils >= 0.7'])
<|endoftext|>


<commit_before>from setuptools import setup
import os

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

version = "1.0b5-dev"

install_requires = [
    'PyYAML',
    'jinja2',
    'setuptools',
    'ploy>=1.0rc13',
    'ploy_ansible>=1.0b7',
    'ploy_ezjail>=1.0b9',
    'ploy_fabric>=1.0b5',
]

# workaround for installing via buildout, as ansible
# violates its sandbox limitations
try:
    import ansible  # noqa
except ImportError:
    install_requires.append('ansible')

setup(
    name="bsdploy",
    version=version,
    description="A tool to provision, configure and maintain FreeBSD jails",
    long_description=README + '\n\n\nChanges\n=======\n\n' + CHANGES,
    author='Tom Lazar',
    author_email='tom@tomster.org',
    url='http://github.com/ployground/bsdploy',
    include_package_data=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: System Administrators',
        'Operating System :: POSIX :: BSD :: FreeBSD',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: System :: Installation/Setup',
        'Topic :: System :: Systems Administration',
    ],
    license='Beerware Licence',
    zip_safe=False,
    packages=['bsdploy'],
    install_requires=install_requires,
    extras_require={
        'development': [
            'Sphinx',
            'repoze.sphinx.autointerface',
            'coverage',
            'jarn.mkrelease',
            'pytest >= 2.4.2',
            'pytest-flakes',
            'pytest-pep8',
            'tox',
            'mock',
        ],
    },
    entry_points="""
        [console_scripts]
        ploy-download = bsdploy.download:run
        [ansible_paths]
        bsdploy = bsdploy:ansible_paths
        [ploy.plugins]
        bsdploy = bsdploy:plugin
    """)
<commit_msg>The ansible requirement is handled by ploy_ansible now.<commit_after>from setuptools import setup
import os

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

version = "1.0b5-dev"

install_requires = [
    'PyYAML',
    'jinja2',
    'setuptools',
    'ploy>=1.0rc13',
    'ploy_ansible>=1.0b8',
    'ploy_ezjail>=1.0b9',
    'ploy_fabric>=1.0b5',
]

setup(
    name="bsdploy",
    version=version,
    description="A tool to provision, configure and maintain FreeBSD jails",
    long_description=README + '\n\n\nChanges\n=======\n\n' + CHANGES,
    author='Tom Lazar',
    author_email='tom@tomster.org',
    url='http://github.com/ployground/bsdploy',
    include_package_data=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: System Administrators',
        'Operating System :: POSIX :: BSD :: FreeBSD',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: System :: Installation/Setup',
        'Topic :: System :: Systems Administration',
    ],
    license='Beerware Licence',
    zip_safe=False,
    packages=['bsdploy'],
    install_requires=install_requires,
    extras_require={
        'development': [
            'Sphinx',
            'repoze.sphinx.autointerface',
            'coverage',
            'jarn.mkrelease',
            'pytest >= 2.4.2',
            'pytest-flakes',
            'pytest-pep8',
            'tox',
            'mock',
        ],
    },
    entry_points="""
        [console_scripts]
        ploy-download = bsdploy.download:run
        [ansible_paths]
        bsdploy = bsdploy:ansible_paths
        [ploy.plugins]
        bsdploy = bsdploy:plugin
    """)
<|endoftext|>


<commit_before>#!/usr/bin/env python
""" Interact with Extreme Networks devices running EXOS """

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

# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())

# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]

version = '0.1'

setup(
    name='pyEXOS',
    version=version,
    py_modules=['pyEXOS'],
    packages=find_packages(),
    install_requires=reqs,
    include_package_data=True,
    description='Python API to interact with network devices running EXOS',
    author='Elisa Jasinska',
    author_email='elisa@bigwaveit.org',
    url='https://github.com/LINXNet/pyexos/',
    download_url='https://github.com/LINXNet/pyexos/tarball/%s' % version,
    keywords=['EXOS', 'Extreme Networks', 'networking'],
    classifiers=[],
)
<commit_msg>version bump 0.2<commit_after>#!/usr/bin/env python
""" Interact with Extreme Networks devices running EXOS """

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

# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())

# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]

version = '0.2'

setup(
    name='pyEXOS',
    version=version,
    py_modules=['pyEXOS'],
    packages=find_packages(),
    install_requires=reqs,
    include_package_data=True,
    description='Python API to interact with network devices running EXOS',
    author='Elisa Jasinska',
    author_email='elisa@bigwaveit.org',
    url='https://github.com/LINXNet/pyexos/',
    download_url='https://github.com/LINXNet/pyexos/tarball/%s' % version,
    keywords=['EXOS', 'Extreme Networks', 'networking'],
    classifiers=[],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import glob

setup(
    name='realfast',
    description='Real-time data analysis at the VLA',
    author='Casey Law and the realfast team',
    author_email='caseyjlaw@gmail.com',
    version='3.3.0',
    url='http://realfast.io',
    include_package_data=True,
    packages=find_packages(),
    package_data={'realfast': ['xsd/*.xsd']},
    data_files=[('conf', glob.glob('conf/*'))],
#    scripts=['scripts/sdm_chop-n-serve.pl'],   # add non-python scripts
    install_requires=['rfpipe', 'evla_mcast', 'sdmpy', 'click',
                      'elasticsearch', 'distributed', 'future'],
                      # 'rfgpu', 'vysmaw_reader'],
    entry_points='''
        [console_scripts]
        realfast=realfast.cli:cli
'''
)
<commit_msg>version bump<commit_after>from setuptools import setup, find_packages
import glob

setup(
    name='realfast',
    description='Real-time data analysis at the VLA',
    author='Casey Law and the realfast team',
    author_email='caseyjlaw@gmail.com',
    version='3.3.1',
    url='http://realfast.io',
    include_package_data=True,
    packages=find_packages(),
    package_data={'realfast': ['xsd/*.xsd']},
    data_files=[('conf', glob.glob('conf/*'))],
#    scripts=['scripts/sdm_chop-n-serve.pl'],   # add non-python scripts
    install_requires=['rfpipe', 'evla_mcast', 'sdmpy', 'click',
                      'elasticsearch', 'distributed', 'future'],
                      # 'rfgpu', 'vysmaw_reader'],
    entry_points='''
        [console_scripts]
        realfast=realfast.cli:cli
'''
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='approvaltests',
    version='0.1.7',
    description='Assertion/verification library to aid testing',
    author='ApprovalTests Contributors',
    author_email='jamesrcounts@outlook.com',
    url='https://github.com/approvals/ApprovalTests.Python',
    packages=['approvaltests'],
    include_package_data = True
)
<commit_msg>Update setup.py<commit_after>from distutils.core import setup

setup(
    name='approvaltests',
    version='0.1.8',
    description='Assertion/verification library to aid testing',
    author='ApprovalTests Contributors',
    author_email='jamesrcounts@outlook.com',
    url='https://github.com/approvals/ApprovalTests.Python',
    packages=['approvaltests'],
    include_package_data = True,
    data_files=[('', ['reporters.json'])]
)
<|endoftext|>


<commit_before>from distutils.core import setup
from pathlib import Path

from setuptools import find_packages

this_file = Path(__file__).resolve()
readme = this_file.parent / "README.md"

setup(
    name="autokeras",
    description="AutoML for deep learning",
    package_data={"": ["README.md"]},
    long_description=readme.read_text(encoding="utf-8"),
    long_description_content_type="text/markdown",
    author="DATA Lab, Keras Team",
    author_email="jhfjhfj1@gmail.com",
    url="http://autokeras.com",
    keywords=["AutoML", "Keras"],
    install_requires=[
        "packaging",
        "tensorflow>=2.8.0",
        "keras-tuner>=1.1.0",
        "pandas",
    ],
    extras_require={
        "tests": [
            "pytest>=4.4.0",
            "flake8",
            "black==22.8.0",
            "isort",
            "pytest-xdist",
            "pytest-cov",
            "coverage",
            "typedapi>=0.2,<0.3",
            "scikit-learn",
        ],
    },
    classifiers=[
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Libraries",
    ],
    license="Apache License 2.0",
    packages=find_packages(exclude=("*test*",)),
)
<commit_msg>Bump black from 22.8.0 to 22.10.0 (#1783)<commit_after>from distutils.core import setup
from pathlib import Path

from setuptools import find_packages

this_file = Path(__file__).resolve()
readme = this_file.parent / "README.md"

setup(
    name="autokeras",
    description="AutoML for deep learning",
    package_data={"": ["README.md"]},
    long_description=readme.read_text(encoding="utf-8"),
    long_description_content_type="text/markdown",
    author="DATA Lab, Keras Team",
    author_email="jhfjhfj1@gmail.com",
    url="http://autokeras.com",
    keywords=["AutoML", "Keras"],
    install_requires=[
        "packaging",
        "tensorflow>=2.8.0",
        "keras-tuner>=1.1.0",
        "pandas",
    ],
    extras_require={
        "tests": [
            "pytest>=4.4.0",
            "flake8",
            "black==22.10.0",
            "isort",
            "pytest-xdist",
            "pytest-cov",
            "coverage",
            "typedapi>=0.2,<0.3",
            "scikit-learn",
        ],
    },
    classifiers=[
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: Libraries",
    ],
    license="Apache License 2.0",
    packages=find_packages(exclude=("*test*",)),
)
<|endoftext|>


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

from __future__ import print_function
from distutils.core import setup

try:
    import fontTools
except:
    print("*** Warning: defcon requires FontTools, see:")
    print("    github.com/behdad/fonttools")

setup(
    name="compositor",
    version="0.2b",
    description="A simple OpenType GSUB and GPOS engine.",
    author="Tal Leming",
    author_email="tal@typesupply.com",
    url="https://github.com/typesupply/compositor",
    license="MIT",
    packages=["compositor"],
    package_dir={"":"Lib"}
)
<commit_msg>Change to using setup tools<commit_after>#!/usr/bin/env python

from __future__ import print_function
from setuptools import setup

try:
    import fontTools
except:
    print("*** Warning: defcon requires FontTools, see:")
    print("    github.com/behdad/fonttools")

setup(
    name="compositor",
    version="0.2b",
    description="A simple OpenType GSUB and GPOS engine.",
    author="Tal Leming",
    author_email="tal@typesupply.com",
    url="https://github.com/typesupply/compositor",
    license="MIT",
    packages=["compositor"],
    package_dir={"":"Lib"}
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
from setuptools.command.install import install
from subprocess import check_call
from codecs import open
from os import path
import os

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

bin_files= set([
        path.join('bin', i)
        for i in os.listdir(path.join(here, 'bin'))
        if not '.' in i])

# be sure about the access rights since this is security sensitive
for file in bin_files:
    os.chmod(file, 0o755)

# only automatically setuid when plash-pun is better reviewed
## This will implicitly change the access rights to setuid in dev
#os.chmod('bin/plash-pun', 0o4755)

setup(
    name='plash',
    version='0.8.0.1',
    description='Container build tool',
    url='https://github.com/ihucos/plash',
    packages=['plashlib'],
    data_files=[("/usr/local/bin", bin_files)],
)
<commit_msg>bumped version again<commit_after>from setuptools import setup, find_packages
from setuptools.command.install import install
from subprocess import check_call
from codecs import open
from os import path
import os

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

bin_files= set([
        path.join('bin', i)
        for i in os.listdir(path.join(here, 'bin'))
        if not '.' in i])

# be sure about the access rights since this is security sensitive
for file in bin_files:
    os.chmod(file, 0o755)

# only automatically setuid when plash-pun is better reviewed
## This will implicitly change the access rights to setuid in dev
#os.chmod('bin/plash-pun', 0o4755)

setup(
    name='plash',
    version='0.8.0.2',
    description='Container build tool',
    url='https://github.com/ihucos/plash',
    packages=['plashlib'],
    data_files=[("/usr/local/bin", bin_files)],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='generic-request-signer',
    version='1.0.1',
    author='imtapps',
    url='https://github.com/imtapps/generic-request-signer',
    description="A python library for signing http requests.",
    long_description=open('README', 'r').read(),
    install_requires=open('requirements/dist.txt', 'r').read().split("\n"),
    packages=find_packages(exclude=("example", "request_signer.tests")),

    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
        'License :: OSI Approved :: BSD License',
        'Topic :: Internet',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<commit_msg>Version: 1.0.1 ~> 1.0.2<commit_after>from setuptools import setup, find_packages

setup(
    name='generic-request-signer',
    version='1.0.2',
    author='imtapps',
    url='https://github.com/imtapps/generic-request-signer',
    description="A python library for signing http requests.",
    long_description=open('README', 'r').read(),
    install_requires=open('requirements/dist.txt', 'r').read().split("\n"),
    packages=find_packages(exclude=("example", "request_signer.tests")),

    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
        'License :: OSI Approved :: BSD License',
        'Topic :: Internet',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
"""
Pygr
====

Pygr is an open source software project used to develop graph database
interfaces for the popular Python language, with a strong emphasis
on bioinformatics applications ranging from genome-wide analysis of
alternative splicing patterns, to comparative genomics queries of
multi-genome alignment data.
"""

import os, sys, stat
from shutil import copyfile
try:
    from setuptools import setup, Extension
except ImportError:
    print 'Setuptools not imported, falling back to distutils'
    from distutils.core import setup, Extension

def error(msg):
    "Fatal errors"
    print( '*** error %s' % msg )
    sys.exit()

import pygr

PYGR_NAME = "pygr"
PYGR_VERSION = pygr.__version__

if sys.version_info < (2, 3):
    error( 'pygr requires python 2.3 or higher' )

CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows :: Windows NT/2000
Operating System :: OS Independent
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: Unix
Programming Language :: Python
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Bio-Informatics
"""

# split into lines and filter empty ones
CLASSIFIERS = filter(None, CLASSIFIERS.splitlines() )

# Setuptools should handle all this automatically
if sys.modules.has_key('setuptools'):
    try:
        import pkg_resources
        pkg_resources.require('Pyrex>=0.9.8')
        ext = 'pyx'
    except pkg_resources.DistributionNotFound:
        ext = 'c'
    cmdclass = { }
else:
# if pyrex is not present try compiling the C files
    try:
        from Pyrex.Compiler.Version import version as PYREX_VERSION
        from Pyrex.Distutils import build_ext
        if PYREX_VERSION < "0.9.8":
            error ( "pyrex version >=0.9.8 required, found %s" % PYREX_VERSION )
        ext = 'pyx'
        cmdclass = { 'build_ext': build_ext }
    except ImportError, exc:
        ext = 'c'
        cmdclass = {}

# extension sources
seqfmt_src = [ os.path.join('pygr', 'seqfmt.%s' % ext) ]
cdict_src  = [ os.path.join('pygr', 'cgraph.c'),
              os.path.join('pygr', 'cdict.%s' % ext) ]
nested_src = [ os.path.join('pygr', 'intervaldb.c'),
              os.path.join('pygr', 'cnestedlist.%s' % ext),
              os.path.join('pygr', 'apps', 'maf2nclist.c') ]

def main():
    setup(
        name = PYGR_NAME ,
        version= PYGR_VERSION,
        description = 'Pygr, a Python graph-database toolkit oriented primarily on bioinformatics applications',
        long_description = __doc__,
        author = "Christopher Lee",
        author_email='leec@chem.ucla.edu',
        url = 'http://code.google.com/p/pygr/',
        license = 'New BSD License',
        classifiers = CLASSIFIERS,

        packages = [ 'pygr', 'pygr.apps' ],

        ext_modules = [
            Extension( 'pygr.seqfmt', seqfmt_src ),
            Extension( 'pygr.cdict',  cdict_src ),
            Extension( 'pygr.cnestedlist', nested_src),
        ],

        cmdclass = cmdclass,
     )

if __name__ == '__main__':
    main()
<commit_msg>removed unnecessary stat and shutil import from setup.py<commit_after>#!/usr/bin/env python
"""
Pygr
====

Pygr is an open source software project used to develop graph database
interfaces for the popular Python language, with a strong emphasis
on bioinformatics applications ranging from genome-wide analysis of
alternative splicing patterns, to comparative genomics queries of
multi-genome alignment data.
"""

import os, sys

try:
    from setuptools import setup, Extension
except ImportError:
    print 'Setuptools not imported, falling back to distutils'
    from distutils.core import setup, Extension

def error(msg):
    "Fatal errors"
    print( '*** error %s' % msg )
    sys.exit()

import pygr

PYGR_NAME = "pygr"
PYGR_VERSION = pygr.__version__

if sys.version_info < (2, 3):
    error( 'pygr requires python 2.3 or higher' )

CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows :: Windows NT/2000
Operating System :: OS Independent
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: Unix
Programming Language :: Python
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Bio-Informatics
"""

# split into lines and filter empty ones
CLASSIFIERS = filter(None, CLASSIFIERS.splitlines() )

# Setuptools should handle all this automatically
if sys.modules.has_key('setuptools'):
    try:
        import pkg_resources
        pkg_resources.require('Pyrex>=0.9.8')
        ext = 'pyx'
    except pkg_resources.DistributionNotFound:
        ext = 'c'
    cmdclass = { }
else:
# if pyrex is not present try compiling the C files
    try:
        from Pyrex.Compiler.Version import version as PYREX_VERSION
        from Pyrex.Distutils import build_ext
        if PYREX_VERSION < "0.9.8":
            error ( "pyrex version >=0.9.8 required, found %s" % PYREX_VERSION )
        ext = 'pyx'
        cmdclass = { 'build_ext': build_ext }
    except ImportError, exc:
        ext = 'c'
        cmdclass = {}

# extension sources
seqfmt_src = [ os.path.join('pygr', 'seqfmt.%s' % ext) ]
cdict_src  = [ os.path.join('pygr', 'cgraph.c'),
              os.path.join('pygr', 'cdict.%s' % ext) ]
nested_src = [ os.path.join('pygr', 'intervaldb.c'),
              os.path.join('pygr', 'cnestedlist.%s' % ext),
              os.path.join('pygr', 'apps', 'maf2nclist.c') ]

def main():
    setup(
        name = PYGR_NAME ,
        version= PYGR_VERSION,
        description = 'Pygr, a Python graph-database toolkit oriented primarily on bioinformatics applications',
        long_description = __doc__,
        author = "Christopher Lee",
        author_email='leec@chem.ucla.edu',
        url = 'http://code.google.com/p/pygr/',
        license = 'New BSD License',
        classifiers = CLASSIFIERS,

        packages = [ 'pygr', 'pygr.apps' ],

        ext_modules = [
            Extension( 'pygr.seqfmt', seqfmt_src ),
            Extension( 'pygr.cdict',  cdict_src ),
            Extension( 'pygr.cnestedlist', nested_src),
        ],

        cmdclass = cmdclass,
     )

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


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

classifiers = ['Development Status :: 6 - Mature',
               'Intended Audience :: Developers',
               'License :: OSI Approved :: MIT License',
               'Operating System :: POSIX',
               'Operating System :: Microsoft :: Windows',
               'Operating System :: MacOS :: MacOS X',
               'Topic :: Software Development :: Testing',
               'Topic :: Software Development :: Libraries',
               'Topic :: Utilities'] + [
              ('Programming Language :: Python :: %s' % x) for x in
                  '2 2.6 2.7 3 3.2 3.3 3.4'.split()]

with open('README.rst') as fd:
    long_description = fd.read()

def get_version():
    p = os.path.join(os.path.dirname(
                     os.path.abspath(__file__)), "_pytest", "__init__.py")
    with open(p) as f:
        for line in f.readlines():
            if "__version__" in line:
                return line.strip().split("=")[-1].strip(" '")
    raise ValueError("could not read version")

def has_newish_setuptools():
    try:
        import setuptools
        import pkg_resources
        return pkg_resources.parse_version(setuptools.__version__) >= pkg_resources.parse_version('0.7.2')
    except Exception as exc:
        sys.stderr.write("Could not test setuptool's version: %s\n" % exc)
        return False

def main():
    install_requires = ['py>=1.4.25']
    extras_require = {}
    if has_newish_setuptools():
        extras_require[':python_version=="2.6" or python_version=="3.0" or python_version=="3.1"'] = ['argparse']
        extras_require[':sys_platform=="win32"'] = ['colorama']
    else:
        if sys.version_info < (2, 7) or (3,) <= sys.version_info < (3, 2):
            install_requires.append('argparse')
        if sys.platform == 'win32':
            install_requires.append('colorama')

    setup(
        name='pytest',
        description='pytest: simple powerful testing with Python',
        long_description=long_description,
        version=get_version(),
        url='http://pytest.org',
        license='MIT license',
        platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
        author='Holger Krekel, Benjamin Peterson, Ronny Pfannschmidt, Floris Bruynooghe and others',
        author_email='holger at merlinux.eu',
        entry_points=make_entry_points(),
        classifiers=classifiers,
        cmdclass={'test': PyTest},
        # the following should be enabled for release
        install_requires=install_requires,
        extras_require=extras_require,
        packages=['_pytest', '_pytest.assertion'],
        py_modules=['pytest'],
        zip_safe=False,
    )

def cmdline_entrypoints(versioninfo, platform, basename):
    target = 'pytest:main'
    if platform.startswith('java'):
        points = {'py.test-jython': target}
    else:
        if basename.startswith('pypy'):
            points = {'py.test-%s' % basename: target}
        else: # cpython
            points = {'py.test-%s.%s' % versioninfo[:2] : target}
        points['py.test'] = target
    return points

def make_entry_points():
    basename = os.path.basename(sys.executable)
    points = cmdline_entrypoints(sys.version_info, sys.platform, basename)
    keys = list(points.keys())
    keys.sort()
    l = ['%s = %s' % (x, points[x]) for x in keys]
    return {'console_scripts': l}

class PyTest(Command):
    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import subprocess
        PPATH = [x for x in os.environ.get('PYTHONPATH', '').split(':') if x]
        PPATH.insert(0, os.getcwd())
        os.environ['PYTHONPATH'] = ':'.join(PPATH)
        errno = subprocess.call([sys.executable, 'pytest.py', '--ignore=doc'])
        raise SystemExit(errno)

if __name__ == '__main__':
    main()
<commit_msg>Rename function and add nice docstring.<commit_after>import os, sys
from setuptools import setup, Command

classifiers = ['Development Status :: 6 - Mature',
               'Intended Audience :: Developers',
               'License :: OSI Approved :: MIT License',
               'Operating System :: POSIX',
               'Operating System :: Microsoft :: Windows',
               'Operating System :: MacOS :: MacOS X',
               'Topic :: Software Development :: Testing',
               'Topic :: Software Development :: Libraries',
               'Topic :: Utilities'] + [
              ('Programming Language :: Python :: %s' % x) for x in
                  '2 2.6 2.7 3 3.2 3.3 3.4'.split()]

with open('README.rst') as fd:
    long_description = fd.read()

def get_version():
    p = os.path.join(os.path.dirname(
                     os.path.abspath(__file__)), "_pytest", "__init__.py")
    with open(p) as f:
        for line in f.readlines():
            if "__version__" in line:
                return line.strip().split("=")[-1].strip(" '")
    raise ValueError("could not read version")

def has_environment_marker_support():
    """
    Tests that setuptools has support for PEP-426 environment marker support.

    The first known release to support it is 0.7 (and the earliest on PyPI seems to be 0.7.2
    so we're using that), see: http://pythonhosted.org/setuptools/history.html#id142

    References:

    * https://wheel.readthedocs.org/en/latest/index.html#defining-conditional-dependencies
    * https://www.python.org/dev/peps/pep-0426/#environment-markers
    """
    try:
        import setuptools
        import pkg_resources
        return pkg_resources.parse_version(setuptools.__version__) >= pkg_resources.parse_version('0.7.2')
    except Exception as exc:
        sys.stderr.write("Could not test setuptool's version: %s\n" % exc)
        return False

def main():
    install_requires = ['py>=1.4.25']
    extras_require = {}
    if has_environment_marker_support():
        extras_require[':python_version=="2.6" or python_version=="3.0" or python_version=="3.1"'] = ['argparse']
        extras_require[':sys_platform=="win32"'] = ['colorama']
    else:
        if sys.version_info < (2, 7) or (3,) <= sys.version_info < (3, 2):
            install_requires.append('argparse')
        if sys.platform == 'win32':
            install_requires.append('colorama')

    setup(
        name='pytest',
        description='pytest: simple powerful testing with Python',
        long_description=long_description,
        version=get_version(),
        url='http://pytest.org',
        license='MIT license',
        platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
        author='Holger Krekel, Benjamin Peterson, Ronny Pfannschmidt, Floris Bruynooghe and others',
        author_email='holger at merlinux.eu',
        entry_points=make_entry_points(),
        classifiers=classifiers,
        cmdclass={'test': PyTest},
        # the following should be enabled for release
        install_requires=install_requires,
        extras_require=extras_require,
        packages=['_pytest', '_pytest.assertion'],
        py_modules=['pytest'],
        zip_safe=False,
    )

def cmdline_entrypoints(versioninfo, platform, basename):
    target = 'pytest:main'
    if platform.startswith('java'):
        points = {'py.test-jython': target}
    else:
        if basename.startswith('pypy'):
            points = {'py.test-%s' % basename: target}
        else: # cpython
            points = {'py.test-%s.%s' % versioninfo[:2] : target}
        points['py.test'] = target
    return points

def make_entry_points():
    basename = os.path.basename(sys.executable)
    points = cmdline_entrypoints(sys.version_info, sys.platform, basename)
    keys = list(points.keys())
    keys.sort()
    l = ['%s = %s' % (x, points[x]) for x in keys]
    return {'console_scripts': l}

class PyTest(Command):
    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import subprocess
        PPATH = [x for x in os.environ.get('PYTHONPATH', '').split(':') if x]
        PPATH.insert(0, os.getcwd())
        os.environ['PYTHONPATH'] = ':'.join(PPATH)
        errno = subprocess.call([sys.executable, 'pytest.py', '--ignore=doc'])
        raise SystemExit(errno)

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


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

from setuptools import setup

setup(
    name='aubreylib',
    version='2.0.0',
    description='A helper library for the Aubrey access system.',
    author='University of North Texas Libraries',
    author_email='mark.phillips@unt.edu',
    url='https://github.com/unt-libraries/aubreylib',
    license='BSD',
    packages=['aubreylib'],
    install_requires=[
        'lxml>=3.3.3',
        'pypairtree>=1.0.0',
        'pyuntl @ git+https://github.com/unt-libraries/pyuntl@py3',
    ],

    classifiers=[
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.7',
    ]
)
<commit_msg>Update pyuntl dependency<commit_after>#!/usr/bin/env python

from setuptools import setup

setup(
    name='aubreylib',
    version='2.0.0',
    description='A helper library for the Aubrey access system.',
    author='University of North Texas Libraries',
    author_email='mark.phillips@unt.edu',
    url='https://github.com/unt-libraries/aubreylib',
    license='BSD',
    packages=['aubreylib'],
    install_requires=[
        'lxml>=3.3.3',
        'pypairtree>=1.0.0',
        'pyuntl @ git+https://github.com/unt-libraries/pyuntl@master',
    ],

    classifiers=[
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.7',
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

try:
    from jtssql import __version__
except:
    __version__ = 'dev'

setup(
    name='jtssql',
    version=__version__,
    description="Generate database tables based on JSON Table Schema",
    long_description="",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
    ],
    keywords='schema jsontableschema jts sql data',
    author='Friedrich Lindenberg',
    author_email='friedrich@pudo.org',
    url='http://github.com/okfn/jtssql',
    license='MIT',
    packages=find_packages(exclude=['ez_setup', 'examples', 'test']),
    namespace_packages=[],
    package_data={},
    include_package_data=True,
    zip_safe=False,
    test_suite='nose.collector',
    install_requires=[
        'sqlalchemy >= 1.0',
        'typecast >= 0.2.2',
        'normality'
    ],
    tests_require=[
        'nose',
        'coverage',
        'wheel',
        'unicodecsv',
        'jtskit'
    ]
)
<commit_msg>static version<commit_after>from setuptools import setup, find_packages

__version__ = '0.1.1'

setup(
    name='jtssql',
    version=__version__,
    description="Generate database tables based on JSON Table Schema",
    long_description="",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
    ],
    keywords='schema jsontableschema jts sql data',
    author='Friedrich Lindenberg',
    author_email='friedrich@pudo.org',
    url='http://github.com/okfn/jtssql',
    license='MIT',
    packages=find_packages(exclude=['ez_setup', 'examples', 'test']),
    namespace_packages=[],
    package_data={},
    include_package_data=True,
    zip_safe=False,
    test_suite='nose.collector',
    install_requires=[
        'sqlalchemy >= 1.0',
        'typecast >= 0.2.2',
        'normality'
    ],
    tests_require=[
        'nose',
        'coverage',
        'wheel',
        'unicodecsv',
        'jtskit'
    ]
)
<|endoftext|>


<commit_before>AUTHOR = 'Chris Dent'
AUTHOR_EMAIL = 'cdent@peermore.com'
NAME = 'tiddlywebplugins.logout'
DESCRIPTION = '/logout for TiddlyWeb'
VERSION = '1.0'

import os

from setuptools import setup, find_packages

# You should carefully review the below (install_requires especially).
setup(
    namespace_packages = ['tiddlywebplugins'],
    name = NAME,
    version = VERSION,
    description = DESCRIPTION,
    long_description = open(os.path.join(os.path.dirname(__file__), 'README')).read(),
    author = AUTHOR,
    url = 'http://pypi.python.org/pypi/%s' % NAME,
    packages = find_packages(exclude='test'),
    author_email = AUTHOR_EMAIL,
    platforms = 'Posix; MacOS X; Windows',
    install_requires = ['setuptools',
        'tiddlyweb>=1.2.0'],
    zip_safe = False
    )
<commit_msg>correctly exclude test package<commit_after>AUTHOR = 'Chris Dent'
AUTHOR_EMAIL = 'cdent@peermore.com'
NAME = 'tiddlywebplugins.logout'
DESCRIPTION = '/logout for TiddlyWeb'
VERSION = '1.0'

import os

from setuptools import setup, find_packages

# You should carefully review the below (install_requires especially).
setup(
    namespace_packages = ['tiddlywebplugins'],
    name = NAME,
    version = VERSION,
    description = DESCRIPTION,
    long_description = open(os.path.join(os.path.dirname(__file__), 'README')).read(),
    author = AUTHOR,
    url = 'http://pypi.python.org/pypi/%s' % NAME,
    packages = find_packages(exclude=['test']),
    author_email = AUTHOR_EMAIL,
    platforms = 'Posix; MacOS X; Windows',
    install_requires = ['setuptools',
        'tiddlyweb>=1.2.0'],
    zip_safe = False
    )
<|endoftext|>