<commit_before>from setuptools.command.test import test as TestCommand
import sys
import os

#Class that spins up various vagrant instances
#If this gets too large we'll move it out
class FullTestPass(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
    def run(self):
        import vagrant
        import pysftp
        #Figure out how to properly install this
        #Options: pip requires file, or test_requires below
        current_dir = os.path.dirname(os.path.realpath(__file__))
        test_dir = os.path.join(current_dir,"ftp")
        if not os.path.exists(test_dir):
            os.makedirs(test_dir)
        print 'creating dir'
        v = vagrant.Vagrant(test_dir)
        print 'turning on'
        v.up(vm_name='avm')
        config_raw = v.ssh_config(vm_name='avm')
        print config_raw
        config = v.conf(vm_name='avm')

        srv = pysftp.Connection(host=config['HostName'], username=config['User'],
                port=int(config['Port']), private_key=config['IdentityFile'])
        print srv.execute('ls -al')
        srv.close
        print 'shutting down'
       # v.halt(vm_name='avm')

        pass

#Runs unit tests
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)

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

from setuptools import setup, find_packages
setup(
    name='squadron',
    version='0.1.1',
    author='Squadron',
    author_email='info@gosquadron.com',
    description='Easy-to-use configuration and release management tool',
    long_description=read('README.md'),
    license='MIT',
    url='http://www.gosquadron.com',
    keywords='configuration management release deployment tool',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Topic :: Software Development :: Testing',
        'Topic :: Utilities',
    ],
    packages=find_packages(),
    scripts=['scripts/squadron'],
    tests_require=[
        'pytest>=2.5.1',
        'mock>=1.0.1'
        ],
    cmdclass = {'test': PyTest, 'ftp': FullTestPass},
    install_requires=[
        'jsonschema>=2.3.0',
        'gitpython>=0.3.2.RC1',
        'quik>=0.2.2',
        'requests>=2.2.0',
        'py>=1.4.19']
)
<commit_msg>renamed from ftp to vmtest (except for folder), actually run tests in vm, and copy all logs locally<commit_after>from setuptools.command.test import test as TestCommand
import sys
import os

#Class that spins up various vagrant instances
#If this gets too large we'll move it out
class VMTestPass(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
    def run(self):
        import vagrant
        import pysftp
        #Figure out how to properly install this
        #Options: pip requires file, or test_requires below
        current_dir = os.path.dirname(os.path.realpath(__file__))
        test_dir = os.path.join(current_dir,"ftp")
        if not os.path.exists(test_dir):
            os.makedirs(test_dir)
        print 'creating dir'
        v = vagrant.Vagrant(test_dir)
        print 'turning on'
        v.up(vm_name='avm')
        config_raw = v.ssh_config(vm_name='avm')
        config = v.conf(vm_name='avm')
        print "Connecting via SSH"
        srv = pysftp.Connection(host=config['HostName'], username=config['User'],
                port=int(config['Port']), private_key=config['IdentityFile'])
        print "Installing prerequisites"
        #This is going to be OS specific, for now assume its debian
        package = srv.execute('export DEBIAN_FRONTEND=noninteractive; sudo apt-get -q -y install git python python-pip')
        print "reclonening squadron git repo"
        clone = srv.execute('rm -rf squadron; git clone https://github.com/gosquadron/squadron.git')
        print "executing tests"
        out = srv.execute('cd squadron; python setup.py test > /vagrant/test.out')
        fresult = open(os.path.join(test_dir, 'test.out'), 'r')
        tests = fresult.read()
        fresult.close()

        package = ', '.join(package).replace(', ', '')
        clone = ', '.join(clone).replace(', ', '')
        out = ', '.join(out).replace(', ', '')

        f = open('vmtest.output', 'w')
        f.write("{0}\n{1}\n{2}\n{3}".format(package, clone, tests, out))
        f.close()
        print "Output file: vmtest.output"
        srv.close
        print 'shutting down (disabled)'
       # v.halt(vm_name='avm')

        pass

#Runs unit tests
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)

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

from setuptools import setup, find_packages
setup(
    name='squadron',
    version='0.1.1',
    author='Squadron',
    author_email='info@gosquadron.com',
    description='Easy-to-use configuration and release management tool',
    long_description=read('README.md'),
    license='MIT',
    url='http://www.gosquadron.com',
    keywords='configuration management release deployment tool',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Topic :: Software Development :: Testing',
        'Topic :: Utilities',
    ],
    packages=find_packages(),
    scripts=['scripts/squadron'],
    tests_require=[
        'pytest>=2.5.1',
        'mock>=1.0.1'
        ],
    cmdclass = {'test': PyTest, 'vmtest': VMTestPass},
    install_requires=[
        'jsonschema>=2.3.0',
        'gitpython>=0.3.2.RC1',
        'quik>=0.2.2',
        'requests>=2.2.0',
        'py>=1.4.19']
)
<|endoftext|>


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

from setuptools import setup

setup(name='bitstruct',
      version='0.7.2',
      description=('This module performs conversions between Python values '
                   'and C bit field structs represented as Python '
                   'bytearrays.'),
      long_description=open('README.rst', 'r').read(),
      author='Erik Moqvist',
      author_email='erik.moqvist@gmail.com',
      license='MIT',
      classifiers=[
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 3',
      ],
      keywords=['bit field', 'bit parsing', 'bit unpack', 'bit pack'],
      url='https://github.com/eerimoq/bitstruct',
      py_modules=['bitstruct'],
      test_suite="tests")
<commit_msg>1.0.0<commit_after>#!/usr/bin/env python

from setuptools import setup

setup(name='bitstruct',
      version='1.0.0',
      description=('This module performs conversions between Python values '
                   'and C bit field structs represented as Python '
                   'bytearrays.'),
      long_description=open('README.rst', 'r').read(),
      author='Erik Moqvist',
      author_email='erik.moqvist@gmail.com',
      license='MIT',
      classifiers=[
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 3',
      ],
      keywords=['bit field', 'bit parsing', 'bit unpack', 'bit pack'],
      url='https://github.com/eerimoq/bitstruct',
      py_modules=['bitstruct'],
      test_suite="tests")
<|endoftext|>


<commit_before>from setuptools import find_packages, setup

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

setup(
    name="larq",
    version="0.10.2",
    python_requires=">=3.6",
    author="Plumerai",
    author_email="opensource@plumerai.com",
    description="An Open Source Machine Learning Library for Training Binarized Neural Networks",
    long_description=readme(),
    long_description_content_type="text/markdown",
    url="https://larq.dev/",
    packages=find_packages(exclude=["larq.snapshots"]),
    license="Apache 2.0",
    install_requires=[
        "numpy >= 1.15.4, < 2.0",
        "terminaltables>=3.1.0",
        "dataclasses ; python_version<'3.7'",
        "importlib-metadata >= 2.0, < 4.0 ; python_version<'3.8'",
    ],
    extras_require={
        "tensorflow": ["tensorflow>=1.14.0"],
        "tensorflow_gpu": ["tensorflow-gpu>=1.14.0"],
        "test": [
            "black==20.8b1",
            "flake8>=3.7.9,<3.9.0",
            "isort==5.7.0",
            "packaging>=19.2,<21.0",
            "pytest>=5.2.4,<6.3.0",
            "pytest-cov>=2.8.1,<2.12.0",
            "pytest-xdist>=1.30,<2.3",
            "pytest-mock>=2.0,<3.6",
            "pytype==2020.10.8",
            "snapshottest>=0.5.1,<0.7.0",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<commit_msg>:arrow_up: 0.10.3 (#618)<commit_after>from setuptools import find_packages, setup

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

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


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

import distutils.command.clean
import os
import re
import setuptools

from distutils import log
from distutils.core import setup
from distutils.dir_util import remove_tree
from distutils.extension import Extension
from distutils.util import split_quoted

from Cython.Build import cythonize

NAME = 'Janus'
DESCRIPTION = ''
LONG_DESCRIPTION = ''
AUTHOR = 'S. Brisard'
AUTHOR_EMAIL = 'sebastien.brisard@ifsttar.fr'
URL = 'https://bitbucket.org/sbrisard/janus/'
DOWNLOAD_URL = 'https://bitbucket.org/sbrisard/janus/'
LICENSE = 'BSD-3'

class clean(distutils.command.clean.clean):
    description = (distutils.command.clean.clean.description +
                   ', including *.c, *.pyc, *.pyd, *.pyo and *.so files')

    def find_directories_to_remove(self, root):
        directories = []
        for dirpath, dirnames, filenames in os.walk(root):
            for dirname in dirnames:
                if dirname == '__pycache__':
                    directories.append(os.path.join(dirpath, dirname))
        return directories

    def find_files_to_remove(self, root):
        p = re.compile('.+\.((c)|(so)|(pyc)|(pyd)|(pyo))$')
        files = []
        for dirpath, dirnames, filenames in os.walk(root):
            if not dirpath.endswith('__pycache__'):
                for filename in filenames:
                    if p.match(filename):
                        files.append(os.path.join(dirpath, filename))
        return files

    def remove_directories(self, directories):
        for d in directories:
            remove_tree(d, dry_run=self.dry_run)

    def remove_files(self, files):
        for f in files:
            log.info('removing '+f)
            if not self.dry_run:
                os.remove(f)

    def run(self):
        out = super().run()

        root = os.path.join('.', 'janus')
        directories = self.find_directories_to_remove(root)
        files = self.find_files_to_remove(root)
        self.remove_directories(directories)
        self.remove_files(files)
        return out

def extensions_and_packages():
    extensions = [Extension('janus.utils.checkarray',
                            sources=['janus/utils/checkarray.pyx']),
                  Extension('janus.operators',
                            sources=['janus/operators.pyx']),
                  Extension('janus.material.elastic.linear.isotropic',
                            sources=['janus/material/elastic/linear/'
                                     'isotropic.pyx']),
                  Extension('janus.green',
                            sources=['janus/green.pyx'],),
                  # TODO This module also depends on fftw.pxd
                  Extension('janus.fft.serial._serial_fft',
                            sources=['janus/fft/serial/_serial_fft.pyx'])]
    packages = ['janus', 'janus.fft', 'janus.fft.serial', 'janus.utils']
    return extensions, packages

def mpicc_showme():
    """Use ``mpicc --showme`` to retrieve the mpicc arguments.

    Works with openmpi, not mpich.
    Returns a dictionary that can be passed to Extension().
    """

    import mpi4py
    from subprocess import check_output
    mpicc = mpi4py.get_config()['mpicc']

    def call_mpicc_showme(arg):
        out = check_output([mpicc, '--showme:'+arg])
        return out.decode('ascii').split()

    incdirs = call_mpicc_showme('incdirs')
    incdirs.append(mpi4py.get_include())

    return {'include_dirs': incdirs,
            'library_dirs': call_mpicc_showme('libdirs'),
            'extra_compile_args': call_mpicc_showme('compile'),
            'extra_link_args': call_mpicc_showme('link')}

def mpicc_show():
    """Use ``mpicc --show`` to retrieve the mpicc arguments.

    Works with both openmpi and mpich.
    Returns a dictionary that can be passed to Extension().
    """
    import mpi4py
    import subprocess
    mpicc = mpi4py.get_config()['mpicc']
    mpicc_show = subprocess.check_output([mpicc, '-show']).decode().strip()
    # Strip command line from first part, which is the name of the compiler
    mpicc_show = re.sub('\S+\s', '', mpicc_show, count=1)

    def my_filter(regex, iterable):
        matching = []
        non_matching = []
        for item in iterable:
            if re.match(regex, item):
                matching.append(item)
            else:
                non_matching.append(item)
        return matching, non_matching

    cflags = split_quoted(mpicc_show)
    incdirs, cflags = my_filter('^-I', cflags)
    libdirs, cflags = my_filter('^-L', cflags)
    ldflags, cflags = my_filter('^-W?l', cflags)
    ldflags += cflags
    incdirs.append(mpi4py.get_include())

    return {'include_dirs': incdirs,
            'library_dirs': libdirs,
            'extra_compile_args': cflags,
            'extra_link_args': ldflags}

def extensions_and_packages_with_mpi():
    try:
        # import mpi4py
        # TODO This module also depends on fftw_mpi.pxd
        extensions = [Extension('janus.fft.parallel._parallel_fft',
                                sources=['janus/fft/parallel/'
                                         '_parallel_fft.pyx'],
                                **mpicc_show())]
        packages = ['janus.fft.parallel']
        return extensions, packages
    except ImportError:
        return [], []

if __name__ == '__main__':
    extensions, packages = extensions_and_packages()
    extensions_mpi, packages_mpi = extensions_and_packages_with_mpi()

    extensions += extensions_mpi
    packages += packages_mpi
    setup(name=NAME,
          version='0.1',
          description=DESCRIPTION,
          long_description=LONG_DESCRIPTION,
          author=AUTHOR,
          author_email=AUTHOR_EMAIL,
          url=URL,
          download_url=DOWNLOAD_URL,
          license=LICENSE,
          packages=packages,
          ext_modules=cythonize(extensions,
                                compiler_directives={'embedsignature': True}),
          cmdclass={'clean': clean})
<commit_msg>Correct compilation with MPI support<commit_after># -*- coding: utf-8 -*-

import distutils.command.clean
import os
import re
import setuptools

from distutils import log
from distutils.core import setup
from distutils.dir_util import remove_tree
from distutils.extension import Extension
from distutils.util import split_quoted

from Cython.Build import cythonize

NAME = 'Janus'
DESCRIPTION = ''
LONG_DESCRIPTION = ''
AUTHOR = 'S. Brisard'
AUTHOR_EMAIL = 'sebastien.brisard@ifsttar.fr'
URL = 'https://bitbucket.org/sbrisard/janus/'
DOWNLOAD_URL = 'https://bitbucket.org/sbrisard/janus/'
LICENSE = 'BSD-3'

class clean(distutils.command.clean.clean):
    description = (distutils.command.clean.clean.description +
                   ', including *.c, *.pyc, *.pyd, *.pyo and *.so files')

    def find_directories_to_remove(self, root):
        directories = []
        for dirpath, dirnames, filenames in os.walk(root):
            for dirname in dirnames:
                if dirname == '__pycache__':
                    directories.append(os.path.join(dirpath, dirname))
        return directories

    def find_files_to_remove(self, root):
        p = re.compile('.+\.((c)|(so)|(pyc)|(pyd)|(pyo))$')
        files = []
        for dirpath, dirnames, filenames in os.walk(root):
            if not dirpath.endswith('__pycache__'):
                for filename in filenames:
                    if p.match(filename):
                        files.append(os.path.join(dirpath, filename))
        return files

    def remove_directories(self, directories):
        for d in directories:
            remove_tree(d, dry_run=self.dry_run)

    def remove_files(self, files):
        for f in files:
            log.info('removing '+f)
            if not self.dry_run:
                os.remove(f)

    def run(self):
        out = super().run()

        root = os.path.join('.', 'janus')
        directories = self.find_directories_to_remove(root)
        files = self.find_files_to_remove(root)
        self.remove_directories(directories)
        self.remove_files(files)
        return out

def extensions_and_packages():
    extensions = [Extension('janus.utils.checkarray',
                            sources=['janus/utils/checkarray.pyx']),
                  Extension('janus.operators',
                            sources=['janus/operators.pyx']),
                  Extension('janus.material.elastic.linear.isotropic',
                            sources=['janus/material/elastic/linear/'
                                     'isotropic.pyx']),
                  Extension('janus.green',
                            sources=['janus/green.pyx'],),
                  # TODO This module also depends on fftw.pxd
                  Extension('janus.fft.serial._serial_fft',
                            sources=['janus/fft/serial/_serial_fft.pyx'])]
    packages = ['janus', 'janus.fft', 'janus.fft.serial', 'janus.utils']
    return extensions, packages

def mpicc_showme():
    """Use ``mpicc --showme`` to retrieve the mpicc arguments.

    Works with openmpi, not mpich.
    Returns a dictionary that can be passed to Extension().
    """

    import mpi4py
    from subprocess import check_output
    mpicc = mpi4py.get_config()['mpicc']

    def call_mpicc_showme(arg):
        out = check_output([mpicc, '--showme:'+arg])
        return out.decode('ascii').split()

    incdirs = call_mpicc_showme('incdirs')
    incdirs.append(mpi4py.get_include())

    return {'include_dirs': incdirs,
            'library_dirs': call_mpicc_showme('libdirs'),
            'extra_compile_args': call_mpicc_showme('compile'),
            'extra_link_args': call_mpicc_showme('link')}

def mpicc_show():
    """Use ``mpicc --show`` to retrieve the mpicc arguments.

    Works with both openmpi and mpich.
    Returns a dictionary that can be passed to Extension().
    """
    import mpi4py
    import subprocess
    mpicc = mpi4py.get_config()['mpicc']
    mpicc_show = subprocess.check_output([mpicc, '-show']).decode().strip()
    # Strip command line from first part, which is the name of the compiler
    mpicc_show = re.sub('\S+\s', '', mpicc_show, count=1)

    def my_filter(regex, iterable, group=0):
        matching = []
        non_matching = []
        for item in iterable:
            m = re.search(regex, item)
            if m is not None:
                matching.append(m.group(group))
            else:
                non_matching.append(item)
        return matching, non_matching

    cflags = split_quoted(mpicc_show)
    incdirs, cflags = my_filter('^-I(.*)', cflags, 1)
    libdirs, cflags = my_filter('^-L(.*)', cflags, 1)
    ldflags, cflags = my_filter('^-W?l.*', cflags)
    ldflags += cflags
    incdirs.append(mpi4py.get_include())

    return {'include_dirs': incdirs,
            'library_dirs': libdirs,
            'extra_compile_args': cflags,
            'extra_link_args': ldflags}

def extensions_and_packages_with_mpi():
    try:
        # import mpi4py
        # TODO This module also depends on fftw_mpi.pxd
        extensions = [Extension('janus.fft.parallel._parallel_fft',
                                sources=['janus/fft/parallel/'
                                         '_parallel_fft.pyx'],
                                **mpicc_show())]
        packages = ['janus.fft.parallel']
        return extensions, packages
    except ImportError:
        return [], []

if __name__ == '__main__':
    extensions, packages = extensions_and_packages()
    extensions_mpi, packages_mpi = extensions_and_packages_with_mpi()

    extensions += extensions_mpi
    packages += packages_mpi
    setup(name=NAME,
          version='0.1',
          description=DESCRIPTION,
          long_description=LONG_DESCRIPTION,
          author=AUTHOR,
          author_email=AUTHOR_EMAIL,
          url=URL,
          download_url=DOWNLOAD_URL,
          license=LICENSE,
          packages=packages,
          ext_modules=cythonize(extensions,
                                compiler_directives={'embedsignature': True}),
          cmdclass={'clean': clean})
<|endoftext|>


<commit_before>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
import os
import sys

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'description.txt'), encoding='utf-8') as f:
    long_description = f.read()
version_filename = os.path.join('pysat', 'version.txt')
with open(os.path.join(here, version_filename)) as version_file:
    version = version_file.read().strip()

# change setup.py for readthedocs
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if sys.version_info.major == 2:
    install_requires = ['xarray<0.12', 'pandas>=0.23, <0.25',
                        'numpy>=1.12, <1.17', 'scipy<1.3', 'sgp4',
                        'pyEphem', 'requests', 'beautifulsoup4',
                        'lxml', 'netCDF4', 'matplotlib<3.1', 'pysatCDF',
                        'apexpy', 'aacgmv2', 'pysatMagVect', 'madrigalWeb',
                        'h5py', 'PyForecastTools', 'pyglow']
else:
    install_requires = ['xarray', 'pandas>=0.23, <0.25', 'numpy>=1.12',
                        'sgp4', 'pyEphem', 'requests', 'beautifulsoup4',
                        'lxml', 'netCDF4', 'matplotlib', 'pysatCDF',
                        'apexpy', 'aacgmv2', 'pysatMagVect', 'madrigalWeb',
                        'h5py', 'PyForecastTools', 'pyglow']

# all packages after pysatCDF are excluded if on ReadTheDocs
if on_rtd:
    # read the docs doesn't do Fortran
    # remove pysatCDF through h5py
    install_requires = install_requires[:-8]

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

    description='Supports science data analysis across measurement platforms',
    long_description=long_description,
    # The project's main homepage.
    url='http://github.com/rstoneback/pysat',

    # Author details
    author='Russell Stoneback',
    author_email='rstoneba@utdallas.edu',

    package_data={'pysat': ['pysat/version*.txt']},
    include_package_data=True,

    # Choose your license
    license='BSD',

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

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

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

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

    # What does your project relate to?
    # keywords='sample setuptools development',

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    packages=['pysat', 'pysat.instruments', 'pysat.ssnl'],

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    install_requires=install_requires,
)
<commit_msg>BUG: Fix matplotlib cap<commit_after>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
import os
import sys

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'description.txt'), encoding='utf-8') as f:
    long_description = f.read()
version_filename = os.path.join('pysat', 'version.txt')
with open(os.path.join(here, version_filename)) as version_file:
    version = version_file.read().strip()

# change setup.py for readthedocs
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if sys.version_info.major == 2:
    install_requires = ['xarray<0.12', 'pandas>=0.23, <0.25',
                        'numpy>=1.12, <1.17', 'scipy<1.3', 'sgp4',
                        'pyEphem', 'requests', 'beautifulsoup4',
                        'lxml', 'netCDF4', 'matplotlib<3.0', 'pysatCDF',
                        'apexpy', 'aacgmv2', 'pysatMagVect', 'madrigalWeb',
                        'h5py', 'PyForecastTools', 'pyglow']
else:
    install_requires = ['xarray', 'pandas>=0.23, <0.25', 'numpy>=1.12',
                        'sgp4', 'pyEphem', 'requests', 'beautifulsoup4',
                        'lxml', 'netCDF4', 'matplotlib', 'pysatCDF',
                        'apexpy', 'aacgmv2', 'pysatMagVect', 'madrigalWeb',
                        'h5py', 'PyForecastTools', 'pyglow']

# all packages after pysatCDF are excluded if on ReadTheDocs
if on_rtd:
    # read the docs doesn't do Fortran
    # remove pysatCDF through h5py
    install_requires = install_requires[:-8]

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

    description='Supports science data analysis across measurement platforms',
    long_description=long_description,
    # The project's main homepage.
    url='http://github.com/rstoneback/pysat',

    # Author details
    author='Russell Stoneback',
    author_email='rstoneba@utdallas.edu',

    package_data={'pysat': ['pysat/version*.txt']},
    include_package_data=True,

    # Choose your license
    license='BSD',

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

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

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

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

    # What does your project relate to?
    # keywords='sample setuptools development',

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    packages=['pysat', 'pysat.instruments', 'pysat.ssnl'],

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


<commit_before>try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
import os.path

def require(*modules):
    """Check if the given modules are already available; if not add them to
    the dependency list."""
    deplist = []
    for module in modules:
        try:
            __import__(module)
        except ImportError:
            deplist.append(module)
    return deplist

def getversion(fname):
    "Get the __version__ without importing plac"
    for line in open(fname):
        if line.startswith('__version__'):
            return eval(line[13:])

if __name__ == '__main__':
    setup(name='plac_ini',
          version=getversion(
            os.path.join(os.path.dirname(__file__), 'plac_ini.py')),
          description=('Adds configuration file support to the smartest '
                       'command line arguments parser in the world'),
          long_description=open('README.txt').read(),
          author='Brent Woodruff',
          author_email='brent@fprimex.com',
          url='https://github.com/fprimex/plac_ini',
          license="BSD License",
          py_modules = ['plac_ini'],
          scripts = [],
          install_requires=require('plac'),
          use_2to3=True,
          keywords="command line arguments parser",
          platforms=["All"],
          classifiers=['Development Status :: 3 - Alpha',
                       'Intended Audience :: Developers',
                       'License :: OSI Approved :: BSD License',
                       'Natural Language :: English',
                       'Operating System :: OS Independent',
                       'Programming Language :: Python',
                       'Programming Language :: Python :: 3',
                       'Topic :: Software Development :: Libraries',
                       'Topic :: Utilities'],
          zip_safe=False)
<commit_msg>use 2to3 only if python 3 is in use<commit_after>try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
import os.path
import sys

should_2to3 = sys.version >= '3'

def require(*modules):
    """Check if the given modules are already available; if not add them to
    the dependency list."""
    deplist = []
    for module in modules:
        try:
            __import__(module)
        except ImportError:
            deplist.append(module)
    return deplist

def getversion(fname):
    "Get the __version__ without importing plac"
    for line in open(fname):
        if line.startswith('__version__'):
            return eval(line[13:])

if __name__ == '__main__':
    setup(name='plac_ini',
          version=getversion(
            os.path.join(os.path.dirname(__file__), 'plac_ini.py')),
          description=('Adds configuration file support to the smartest '
                       'command line arguments parser in the world'),
          long_description=open('README.txt').read(),
          author='Brent Woodruff',
          author_email='brent@fprimex.com',
          url='https://github.com/fprimex/plac_ini',
          license="BSD License",
          py_modules = ['plac_ini'],
          scripts = [],
          install_requires=require('plac'),
          use_2to3=should_2to3,
          keywords="command line arguments parser",
          platforms=["All"],
          classifiers=['Development Status :: 3 - Alpha',
                       'Intended Audience :: Developers',
                       'License :: OSI Approved :: BSD License',
                       'Natural Language :: English',
                       'Operating System :: OS Independent',
                       'Programming Language :: Python',
                       'Programming Language :: Python :: 3',
                       'Topic :: Software Development :: Libraries',
                       'Topic :: Utilities'],
          zip_safe=False)
<|endoftext|>


<commit_before>import os
from distutils.core import setup
from distutils.sysconfig import get_python_lib
import media_nommer

long_description = open('README.rst').read()

TWISTED_PLUGIN_PATH = os.path.join(get_python_lib(), 'twisted', 'plugins')
NOMMER_PLUGIN_PATH = os.path.join('media_nommer', 'twisted', 'plugins')
data_files = [
    (
        TWISTED_PLUGIN_PATH,
        [os.path.join(NOMMER_PLUGIN_PATH, 'feederd.py')]
    ),
    (
        TWISTED_PLUGIN_PATH,
        [os.path.join(NOMMER_PLUGIN_PATH, 'ec2nommerd.py')]
    ),
    #(
    #    TWISTED_PLUGIN_PATH,
    #    [os.path.join(NOMMER_PLUGIN_PATH, 'scavengerd.py')]
    #),
]

setup(
    name='media-nommer',
    version=media_nommer.VERSION,
    description='A Python-based media encoding system, using Amazon AWS as its backbone.',
    long_description=long_description,
    author='DUO Interactive, LLC',
    author_email='gtaylor@duointeractive.com',
    license='BSD License',
    url='http://duointeractive.github.com/media-nommer/',
    platforms=["any"],
    requires=['boto', 'twisted', 'txrestapi', 'simplejson'],
    provides=['media_nommer'],
    packages=[
        'media_nommer',
        'media_nommer.client', 'media_nommer.conf',
        'media_nommer.core', 'media_nommer.core.job_state_backends',
        'media_nommer.core.nommers', 'media_nommer.core.nommers.ec2_ffmpeg',
        'media_nommer.core.storage_backends',
        'media_nommer.ec2nommerd', 'media_nommer.ec2nommerd.web',
        'media_nommer.feederd', 'media_nommer.feederd.web',
        'media_nommer.scavengerd', 'media_nommer.scavengerd.web',
        'media_nommer.utils'
    ],
    data_files=data_files,
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Environment :: Web Environment',
        'Topic :: Multimedia :: Video :: Conversion',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

try:
    # This is needed to re-generate the Twisted plugin dropin.cache after install.
    from twisted.plugin import getPlugins
    list(getPlugins(IPlugin))
except ImportError:
    # Probably haven't installed yet. Fail silently.
    pass
<commit_msg>Fix import for re-generating plugin cache.<commit_after>import os
from distutils.core import setup
from distutils.sysconfig import get_python_lib
import media_nommer

long_description = open('README.rst').read()

TWISTED_PLUGIN_PATH = os.path.join(get_python_lib(), 'twisted', 'plugins')
NOMMER_PLUGIN_PATH = os.path.join('media_nommer', 'twisted', 'plugins')
data_files = [
    (
        TWISTED_PLUGIN_PATH,
        [os.path.join(NOMMER_PLUGIN_PATH, 'feederd.py')]
    ),
    (
        TWISTED_PLUGIN_PATH,
        [os.path.join(NOMMER_PLUGIN_PATH, 'ec2nommerd.py')]
    ),
    #(
    #    TWISTED_PLUGIN_PATH,
    #    [os.path.join(NOMMER_PLUGIN_PATH, 'scavengerd.py')]
    #),
]

setup(
    name='media-nommer',
    version=media_nommer.VERSION,
    description='A Python-based media encoding system, using Amazon AWS as its backbone.',
    long_description=long_description,
    author='DUO Interactive, LLC',
    author_email='gtaylor@duointeractive.com',
    license='BSD License',
    url='http://duointeractive.github.com/media-nommer/',
    platforms=["any"],
    requires=['boto', 'twisted', 'txrestapi', 'simplejson'],
    provides=['media_nommer'],
    packages=[
        'media_nommer',
        'media_nommer.client', 'media_nommer.conf',
        'media_nommer.core', 'media_nommer.core.job_state_backends',
        'media_nommer.core.nommers', 'media_nommer.core.nommers.ec2_ffmpeg',
        'media_nommer.core.storage_backends',
        'media_nommer.ec2nommerd', 'media_nommer.ec2nommerd.web',
        'media_nommer.feederd', 'media_nommer.feederd.web',
        'media_nommer.scavengerd', 'media_nommer.scavengerd.web',
        'media_nommer.utils'
    ],
    data_files=data_files,
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Environment :: Web Environment',
        'Topic :: Multimedia :: Video :: Conversion',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

try:
    # This is needed to re-generate the Twisted plugin dropin.cache after install.
    from twisted.plugin import IPlugin, getPlugins
    list(getPlugins(IPlugin))
except ImportError:
    # Probably haven't installed yet. Fail silently.
    pass
<|endoftext|>


<commit_before># This file is part of Shuup.
#
# Copyright (c) 2012-2020, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys

import setuptools

import shuup_setup_utils as utils

TOPDIR = os.path.abspath(os.path.dirname(__file__))
LONG_DESCRIPTION_FILE = os.path.join(TOPDIR, 'README.rst')
VERSION_FILE = os.path.join(TOPDIR, 'shuup', '_version.py')

# Release instructions
#
#  1. Update the Change Log (CHANGELOG.md)
#      - Make sure all relevant changes since last release are listed
#      - Remove the instruction bullet point ("List all changes after
#        x.x.x here...")
#      - Change the "Unreleased" header to appropriate version header.
#        See header of the last release for example.
#  2. Update VERSION variable here: Increase and drop .post0.dev suffix
#  4. Update version and release variables in doc/conf.py
#  5. Commit changes of steps 1--4
#  6. Tag the commit (of step 5) with
#        git tag -a -m "Shuup X.Y.Z" vX.Y.Z
#     where X.Y.Z is the new version number (must be same as VERSION
#     variable here)
#  7. Check the tag is OK and push it with
#        git push origin refs/tags/vX.Y.Z
#  8. Do a post-release commit:
#      - Add new "Unreleased" header and instruction bullet point to
#        Change Log
#      - Add ".post0.dev" suffix to VERSION variable here

NAME = 'shuup'
VERSION = '2.1.2'
DESCRIPTION = 'E-Commerce Platform'
AUTHOR = 'Shoop Commerce Ltd.'
AUTHOR_EMAIL = 'shuup@shuup.com'
URL = 'http://shuup.com/'
DOWNLOAD_URL_TEMPLATE = (
    'https://github.com/shuup/shuup/releases/download/'
    'v{version}/shuup-{version}-py2.py3-none-any.whl')
LICENSE = 'proprietary'  # https://spdx.org/licenses/
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: Other/Proprietary License
Natural Language :: English
Natural Language :: Chinese (Simplified)
Natural Language :: Finnish
Natural Language :: Japanese
Natural Language :: Portuguese (Brazilian)
Programming Language :: JavaScript
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Office/Business
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
""".strip().splitlines()

EXCLUDED_PACKAGES = [
    'shuup_tests', 'shuup_tests.*',
]

utils.add_exclude_patters([
    'build', 'doc', 'var',
    'LC_MESSAGES',
    'local_settings.py',
])

REQUIRES = [
    'Babel==2.5.3',
    'bleach==3.1.5',
    'django>=1.11,<2.3',
    'django-bootstrap3>=11,<11.1',
    'django-countries>=6.1.2,<6.2',
    'django-enumfields>=2.0.0,<2.1',
    'django-filer>=1.7,<1.8',
    'django-filter>=2.2.0,<2.3',
    'django-jinja==2.5.0',
    'django-mptt==0.9.1',
    'django-parler==2.0.1',
    'django-polymorphic==2.1.2',
    'django-registration-redux==2.7',
    'django-reversion==3.0.5',
    'django-timezone-field==3.1',   # doesn't support Django 3 in this version
    'djangorestframework==3.11',
    'factory-boy==2.7.0',
    'fake-factory>=0.5.0,<0.5.4',
    'Jinja2==2.8.1',
    'jsonfield>=1,<3',
    'keyring>=10',
    'keyrings.alt>=2',
    'lxml>=4,<5',
    'Markdown>=2.6,<3',
    'openpyxl>=2.3,<2.6',
    'python-dateutil>=2.8',
    'toml>=0.10.0,<1'
    'pytz>=2015.4',
    'requests>=2.7,<3',
    'six>=1.9,<2',
    'unicodecsv==0.14.1',
    'xlrd>=1'
]

REQUIRES_FOR_PYTHON2_ONLY = [
    'pillow>=3.4.2,<4'
]

EXTRAS_REQUIRE = {
    ':python_version=="2.7"': REQUIRES_FOR_PYTHON2_ONLY,
    'docs': [
        'Sphinx>=1.3,<2',
    ],
    'testing': utils.get_test_requirements_from_tox_ini(TOPDIR),
    'coding-style': [
        'flake8>3,<4',
        'isort>4.3,<5',
    ],
}
EXTRAS_REQUIRE['everything'] = list(
    set(sum(EXTRAS_REQUIRE.values(), [])) -  # All extras, but not...
    set(REQUIRES_FOR_PYTHON2_ONLY)  # the Python 2 compatibility things
)

if __name__ == '__main__':
    if 'upload' in sys.argv:
        raise EnvironmentError('Uploading is blacklisted')

    version = utils.get_version(VERSION, TOPDIR, VERSION_FILE)
    utils.write_version_to_file(version, VERSION_FILE)

    setuptools.setup(
        name=NAME,
        version=version,
        description=DESCRIPTION,
        long_description=utils.get_long_description(LONG_DESCRIPTION_FILE),
        url=URL,
        download_url=DOWNLOAD_URL_TEMPLATE.format(version=version),
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        install_requires=REQUIRES,
        tests_require=EXTRAS_REQUIRE['testing'],
        extras_require=EXTRAS_REQUIRE,
        packages=utils.find_packages(exclude=EXCLUDED_PACKAGES),
        include_package_data=True,
        cmdclass=utils.COMMANDS
    )
<commit_msg>Post-release update for 2.1.2<commit_after># This file is part of Shuup.
#
# Copyright (c) 2012-2020, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys

import setuptools

import shuup_setup_utils as utils

TOPDIR = os.path.abspath(os.path.dirname(__file__))
LONG_DESCRIPTION_FILE = os.path.join(TOPDIR, 'README.rst')
VERSION_FILE = os.path.join(TOPDIR, 'shuup', '_version.py')

# Release instructions
#
#  1. Update the Change Log (CHANGELOG.md)
#      - Make sure all relevant changes since last release are listed
#      - Remove the instruction bullet point ("List all changes after
#        x.x.x here...")
#      - Change the "Unreleased" header to appropriate version header.
#        See header of the last release for example.
#  2. Update VERSION variable here: Increase and drop .post0.dev suffix
#  4. Update version and release variables in doc/conf.py
#  5. Commit changes of steps 1--4
#  6. Tag the commit (of step 5) with
#        git tag -a -m "Shuup X.Y.Z" vX.Y.Z
#     where X.Y.Z is the new version number (must be same as VERSION
#     variable here)
#  7. Check the tag is OK and push it with
#        git push origin refs/tags/vX.Y.Z
#  8. Do a post-release commit:
#      - Add new "Unreleased" header and instruction bullet point to
#        Change Log
#      - Add ".post0.dev" suffix to VERSION variable here

NAME = 'shuup'
VERSION = '2.1.2.post0.dev'
DESCRIPTION = 'E-Commerce Platform'
AUTHOR = 'Shoop Commerce Ltd.'
AUTHOR_EMAIL = 'shuup@shuup.com'
URL = 'http://shuup.com/'
DOWNLOAD_URL_TEMPLATE = (
    'https://github.com/shuup/shuup/releases/download/'
    'v{version}/shuup-{version}-py2.py3-none-any.whl')
LICENSE = 'proprietary'  # https://spdx.org/licenses/
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: Other/Proprietary License
Natural Language :: English
Natural Language :: Chinese (Simplified)
Natural Language :: Finnish
Natural Language :: Japanese
Natural Language :: Portuguese (Brazilian)
Programming Language :: JavaScript
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Office/Business
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
""".strip().splitlines()

EXCLUDED_PACKAGES = [
    'shuup_tests', 'shuup_tests.*',
]

utils.add_exclude_patters([
    'build', 'doc', 'var',
    'LC_MESSAGES',
    'local_settings.py',
])

REQUIRES = [
    'Babel==2.5.3',
    'bleach==3.1.5',
    'django>=1.11,<2.3',
    'django-bootstrap3>=11,<11.1',
    'django-countries>=6.1.2,<6.2',
    'django-enumfields>=2.0.0,<2.1',
    'django-filer>=1.7,<1.8',
    'django-filter>=2.2.0,<2.3',
    'django-jinja==2.5.0',
    'django-mptt==0.9.1',
    'django-parler==2.0.1',
    'django-polymorphic==2.1.2',
    'django-registration-redux==2.7',
    'django-reversion==3.0.5',
    'django-timezone-field==3.1',   # doesn't support Django 3 in this version
    'djangorestframework==3.11',
    'factory-boy==2.7.0',
    'fake-factory>=0.5.0,<0.5.4',
    'Jinja2==2.8.1',
    'jsonfield>=1,<3',
    'keyring>=10',
    'keyrings.alt>=2',
    'lxml>=4,<5',
    'Markdown>=2.6,<3',
    'openpyxl>=2.3,<2.6',
    'python-dateutil>=2.8',
    'toml>=0.10.0,<1'
    'pytz>=2015.4',
    'requests>=2.7,<3',
    'six>=1.9,<2',
    'unicodecsv==0.14.1',
    'xlrd>=1'
]

REQUIRES_FOR_PYTHON2_ONLY = [
    'pillow>=3.4.2,<4'
]

EXTRAS_REQUIRE = {
    ':python_version=="2.7"': REQUIRES_FOR_PYTHON2_ONLY,
    'docs': [
        'Sphinx>=1.3,<2',
    ],
    'testing': utils.get_test_requirements_from_tox_ini(TOPDIR),
    'coding-style': [
        'flake8>3,<4',
        'isort>4.3,<5',
    ],
}
EXTRAS_REQUIRE['everything'] = list(
    set(sum(EXTRAS_REQUIRE.values(), [])) -  # All extras, but not...
    set(REQUIRES_FOR_PYTHON2_ONLY)  # the Python 2 compatibility things
)

if __name__ == '__main__':
    if 'upload' in sys.argv:
        raise EnvironmentError('Uploading is blacklisted')

    version = utils.get_version(VERSION, TOPDIR, VERSION_FILE)
    utils.write_version_to_file(version, VERSION_FILE)

    setuptools.setup(
        name=NAME,
        version=version,
        description=DESCRIPTION,
        long_description=utils.get_long_description(LONG_DESCRIPTION_FILE),
        url=URL,
        download_url=DOWNLOAD_URL_TEMPLATE.format(version=version),
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        install_requires=REQUIRES,
        tests_require=EXTRAS_REQUIRE['testing'],
        extras_require=EXTRAS_REQUIRE,
        packages=utils.find_packages(exclude=EXCLUDED_PACKAGES),
        include_package_data=True,
        cmdclass=utils.COMMANDS
    )
<|endoftext|>


<commit_before># Copyright 2013 Daniel Narvaez
#
# 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 subprocess
from setuptools import setup, Extension
from distutils.cmd import Command

classifiers = ["License :: OSI Approved :: Apache Software License",
               "Programming Language :: Python :: 2",
               "Topic :: Software Development :: Build Tools"]

class LintCommand(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        subprocess.check_call(["pep8", "."])
        subprocess.check_call(["pyflakes", "."])

setup(name="osbuild",
      packages=["osbuild", "osbuild.plugins", "osbuild"],
      version="0.8",
      description="Pull, build and test multiple source modules",
      author="Daniel Narvaez",
      author_email="dwnarvaez@gmail.com",
      url="http://github.com/dnarvaez/osbuild",
      classifiers=classifiers,
      test_suite="osbuild.tests",
      cmdclass={"lint": LintCommand},
      ext_modules=[Extension("osbuild.sourcestamp", ["src/sourcestamp.c"])])
<commit_msg>Update to 0.9<commit_after># Copyright 2013 Daniel Narvaez
#
# 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 subprocess
from setuptools import setup, Extension
from distutils.cmd import Command

classifiers = ["License :: OSI Approved :: Apache Software License",
               "Programming Language :: Python :: 2",
               "Topic :: Software Development :: Build Tools"]

class LintCommand(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        subprocess.check_call(["pep8", "."])
        subprocess.check_call(["pyflakes", "."])

setup(name="osbuild",
      packages=["osbuild", "osbuild.plugins", "osbuild"],
      version="0.9",
      description="Pull, build and test multiple source modules",
      author="Daniel Narvaez",
      author_email="dwnarvaez@gmail.com",
      url="http://github.com/dnarvaez/osbuild",
      classifiers=classifiers,
      test_suite="osbuild.tests",
      cmdclass={"lint": LintCommand},
      ext_modules=[Extension("osbuild.sourcestamp", ["src/sourcestamp.c"])])
<|endoftext|>


<commit_before>#!/usr/bin/env python
# Copyright 2009 Google Inc. 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.

"""distutils configuration: python setup.py install"""

__author__ = 'tstromberg@google.com (Thomas Stromberg)'

from namebench import VERSION
from distutils.core import setup
try:
    import py2exe
except ImportError:
    pass

setup(name='namebench',
      version=VERSION,
      py_modules=['namebench'],
      description='DNS service benchmarking tool',
      author='Thomas Stromberg',
      author_email='tstromberg@google.com',
      url='http://namebench.googlecode.com/',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: End Users/Desktop',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: Apache 2.0',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
          'Operating System :: POSIX',
          'Programming Language :: Python',
          'Topic :: Networking',
      ],
      packages=['libnamebench',
                'third_party/dns',
                'third_party/dns/rdtypes',
                'third_party/dns/rdtypes/ANY',
                'third_party/dns/rdtypes/IN',
                'third_party/graphy',
                'third_party/jinja2',
                'third_party/graphy/backends',
                'third_party/graphy/backends/google_chart_api'],
      platforms=['Any'],
# Someday we will have proper dependency fetching
#      requires=['graphy', 'dnspython', 'jinja2'],
      license='Apache 2.0',
      scripts=['namebench.py'],
      data_files=[
          ('namebench', ['namebench.cfg']),
          ('namebench/templates',
           ['templates/ascii.tmpl',
                'templates/html.tmpl',
                'templates/style.css'
           ]
          ),
          ('namebench/data', ['data/alexa-top-10000-global.txt'])
      ]
)
<commit_msg>Add third_party package<commit_after>#!/usr/bin/env python
# Copyright 2009 Google Inc. 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.

"""distutils configuration: python setup.py install"""

__author__ = 'tstromberg@google.com (Thomas Stromberg)'

from namebench import VERSION
from distutils.core import setup
try:
    import py2exe
except ImportError:
    pass

setup(name='namebench',
      version=VERSION,
      py_modules=['namebench'],
      description='DNS service benchmarking tool',
      author='Thomas Stromberg',
      author_email='tstromberg@google.com',
      url='http://namebench.googlecode.com/',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: End Users/Desktop',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: Apache 2.0',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
          'Operating System :: POSIX',
          'Programming Language :: Python',
          'Topic :: Networking',
      ],
      packages=['libnamebench',
                'third_party',
                'third_party/dns',
                'third_party/dns/rdtypes',
                'third_party/dns/rdtypes/ANY',
                'third_party/dns/rdtypes/IN',
                'third_party/graphy',
                'third_party/jinja2',
                'third_party/graphy/backends',
                'third_party/graphy/backends/google_chart_api'],
      platforms=['Any'],
# Someday we will have proper dependency fetching
#      requires=['graphy', 'dnspython', 'jinja2'],
      license='Apache 2.0',
      scripts=['namebench.py'],
      data_files=[
          ('namebench', ['namebench.cfg']),
          ('namebench/templates',
           ['templates/ascii.tmpl',
                'templates/html.tmpl',
                'templates/style.css'
           ]
          ),
          ('namebench/data', ['data/alexa-top-10000-global.txt'])
      ]
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# package setup
#
# @author <bprinty@gmail.com>
# ------------------------------------------------

# config
# ------
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

# requirements
# ------------
with open('requirements.txt', 'r') as reqs:
    requirements = map(lambda x: x.rstrip(), reqs.readlines())

test_requirements = [
    # TODO: put package test requirements here
]

# files
# -----
with open('README.md') as readme_file:
    readme = readme_file.read()

# exec
# ----
setup(
    name='coda',
    version='0.0.1',
    description='File metadata tagging and organization.',
    long_description=readme,
    author='Blake Printy',
    author_email='bprinty@gmail.com',
    url='https://github.com/bprinty/coda',
    packages=[
        'coda',
    ],
    package_dir={'coda':
                 'coda'},
    include_package_data=True,
    install_requires=requirements,
    license='Apache-2.0',
    zip_safe=False,
    keywords='coda',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache-3.0 License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    test_suite='nose.collector',
    tests_require=test_requirements
)
<commit_msg>updated readme name in setup script<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# package setup
#
# @author <bprinty@gmail.com>
# ------------------------------------------------

# config
# ------
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

# requirements
# ------------
with open('requirements.txt', 'r') as reqs:
    requirements = map(lambda x: x.rstrip(), reqs.readlines())

test_requirements = [
    # TODO: put package test requirements here
]

# files
# -----
with open('README.rst') as readme_file:
    readme = readme_file.read()

# exec
# ----
setup(
    name='coda',
    version='0.0.1',
    description='File metadata tagging and organization.',
    long_description=readme,
    author='Blake Printy',
    author_email='bprinty@gmail.com',
    url='https://github.com/bprinty/coda',
    packages=[
        'coda',
    ],
    package_dir={'coda':
                 'coda'},
    include_package_data=True,
    install_requires=requirements,
    license='Apache-2.0',
    zip_safe=False,
    keywords='coda',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache-3.0 License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    test_suite='nose.collector',
    tests_require=test_requirements
)
<|endoftext|>


<commit_before>import sys
from setuptools import setup

classifiers = '''\
Environment :: Web Environment
Intended Audience :: Developers
Topic :: Internet :: WWW/HTTP
Topic :: Software Development :: Libraries
License :: OSI Approved :: Apache Software License
Development Status :: 5 - Production/Stable
Natural Language :: English
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Operating System :: OS Independent
'''

description = 'Up to date simple useragent faker with real world database'

packages = ['fake_useragent']

install_requires = []

# no codecs\with for python 2.5
def long_description():
    f = open('README.rst')
    rst = f.read()
    f.close()
    return rst

# Python 2.5 capability
major, minor = sys.version_info[:2]
if (major, minor) == (2, 5):
    install_requires.append('simplejson')

setup(
    name='fake-useragent',
    version='0.0.9',
    packages=packages,
    description=description,
    # include_package_data=True,
    long_description=long_description(),
    install_requires=install_requires,
    author='hellysmile',
    author_email='hellysmile@gmail.com',
    url='https://github.com/hellysmile/fake-useragent',
    zip_safe=False,
    license='http://www.apache.org/licenses/LICENSE-2.0',
    classifiers=filter(None, classifiers.split('\n')),
    keywords=[
        'user', 'agent', 'user agent', 'user-agent', 'fake'
    ]
)
<commit_msg>Bump version.<commit_after>import sys
from setuptools import setup

classifiers = '''\
Environment :: Web Environment
Intended Audience :: Developers
Topic :: Internet :: WWW/HTTP
Topic :: Software Development :: Libraries
License :: OSI Approved :: Apache Software License
Development Status :: 5 - Production/Stable
Natural Language :: English
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Operating System :: OS Independent
'''

description = 'Up to date simple useragent faker with real world database'

packages = ['fake_useragent']

install_requires = []

# no codecs\with for python 2.5
def long_description():
    f = open('README.rst')
    rst = f.read()
    f.close()
    return rst

# Python 2.5 capability
major, minor = sys.version_info[:2]
if (major, minor) == (2, 5):
    install_requires.append('simplejson')

setup(
    name='fake-useragent',
    version='0.1.0',
    packages=packages,
    description=description,
    # include_package_data=True,
    long_description=long_description(),
    install_requires=install_requires,
    author='hellysmile',
    author_email='hellysmile@gmail.com',
    url='https://github.com/hellysmile/fake-useragent',
    zip_safe=False,
    license='http://www.apache.org/licenses/LICENSE-2.0',
    classifiers=filter(None, classifiers.split('\n')),
    keywords=[
        'user', 'agent', 'user agent', 'user-agent', 'fake'
    ]
)
<|endoftext|>


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

from setuptools import setup
import subprocess

try:
    subprocess.run(['conda','install','--yes','--file','requirements.txt'])
except Exception as e:
    print('you will need to install packages in requirements.txt  {}'.format(e))

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

setup(name='themisasi',
      version='0.1',
	  description='Utilities for working with THEMIS GBO ASI camera data',
	  long_description=long_description,
	  author='Michael Hirsch',
	  url='https://github.com/scienceopen/themisasi',
	  install_requires=['histutils','pymap3d'],
      dependency_links = [
        'https://github.com/scienceopen/histutils/tarball/master#egg=histutils',
        'https://github.com/scienceopen/pymap3d/tarball/master#egg=pymap3d'],
      packages=['themisasi'],
	  )

<commit_msg>prereq<commit_after>#!/usr/bin/env python3

from setuptools import setup
import subprocess

try:
    subprocess.run(['conda','install','--yes','--file','requirements.txt'])
except Exception as e:
    print('you will need to install packages in requirements.txt  {}'.format(e))

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

setup(name='themisasi',
      version='0.1',
	  description='Utilities for working with THEMIS GBO ASI camera data',
	  long_description=long_description,
	  author='Michael Hirsch',
	  url='https://github.com/scienceopen/themisasi',
	  install_requires=['histutils','pymap3d'],
      dependency_links = [
        'https://github.com/scienceopen/histutils/tarball/master#egg=histutils',
        'https://github.com/scienceopen/pymap3d/tarball/master#egg=pymap3d',
        'https://github.com/scienceopen/astrometry_azel/tarball/master#egg=astrometry_azel'],
      packages=['themisasi'],
	  )

<|endoftext|>


<commit_before>#!/usr/bin/env python3
from setuptools import setup

version = '0.1.22'

setup(
    name = 'icalevents',
    packages = ['icalevents'],
    install_requires=[
        "httplib2",
        "icalendar",
        "pytz",
        "datetime",
    ],
    version=version,
    description = 'iCal downloader and parser',
    author = 'Thomas Irgang',
    author_email = 'thomas@irgang-la.de',
    url = 'https://github.com/irgangla/icalevents',
    download_url = 'https://github.com/irgangla/icalevents/archive/v' + version + '.tar.gz',
    keywords = ['iCal'],
    classifiers = [
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Development Status :: 4 - Beta',
        'Environment :: Other Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Operating System :: OS Independent',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    long_description = """\
iCal download, parse and query tool
-------------------------------------

Supports downloading of iCal URL or loading of iCal files, parsing the content and finding events occurring in a given
time range.

See: icalevents.icalevents.events(url=None, file=None, start=None, end=None, fix_apple=False)

This version requires Python 3 or later.

"""
)
<commit_msg>updated version to v0.1.23<commit_after>#!/usr/bin/env python3
from setuptools import setup

version = '0.1.23'

setup(
    name = 'icalevents',
    packages = ['icalevents'],
    install_requires=[
        "httplib2",
        "icalendar",
        "pytz",
        "datetime",
    ],
    version=version,
    description = 'iCal downloader and parser',
    author = 'Thomas Irgang',
    author_email = 'thomas@irgang-la.de',
    url = 'https://github.com/irgangla/icalevents',
    download_url = 'https://github.com/irgangla/icalevents/archive/v' + version + '.tar.gz',
    keywords = ['iCal'],
    classifiers = [
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Development Status :: 4 - Beta',
        'Environment :: Other Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Operating System :: OS Independent',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    long_description = """\
iCal download, parse and query tool
-------------------------------------

Supports downloading of iCal URL or loading of iCal files, parsing the content and finding events occurring in a given
time range.

See: icalevents.icalevents.events(url=None, file=None, start=None, end=None, fix_apple=False)

This version requires Python 3 or later.

"""
)
<|endoftext|>


<commit_before>from __future__ import absolute_import
from __future__ import print_function

"""
Updated BSM 10/23/2015
Cython extensions work-around adapted from simplejson setup script:
https://github.com/simplejson/simplejson/blob/0bcdf20cc525c1343b796cb8f247ea5213c6557e/setup.py#L110
"""

import sys
from os.path import join
from setuptools import setup, Extension
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)

NAME = 'PyKrige'
VERSION = '1.3.0'
AUTHOR = 'Benjamin S. Murphy'
EMAIL = 'bscott.murphy@gmail.com'
URL = 'https://github.com/bsmurphy/PyKrige'
DESC = 'Kriging Toolkit for Python'
LDESC = 'PyKrige is a kriging toolkit for Python that supports two- and ' \
        'three-dimensional ordinary and universal kriging.'
PACKAGES = ['pykrige']
PCKG_DAT = {'pykrige': ['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'MANIFEST.in',
                        join('test_data', '*.txt'), join('test_data', '*.asc')]}
REQ = ['numpy', 'scipy', 'matplotlib']

for req in REQ:
    try:
        __import__(req)
    except ImportError:
        print("**************************************************")
        print("Error: PyKrige relies on the installation of the SciPy stack "
              "(Numpy, SciPy, matplotlib) to work. For instructions for "
              "installation, please view https://www.scipy.org/install.html."
              "\n {} missing".format(req)
              )
        print("**************************************************")
        raise
        sys.exit(1)
# python setup.py install goes through REQ in reverse order than pip

CLSF = ['Development Status :: 5 - Production/Stable',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering',
        'Topic :: Scientific/Engineering :: GIS']

# Removed python 3 switch from here
try:
    from Cython.Distutils import build_ext
    import Cython.Compiler.Options
    Cython.Compiler.Options.annotate = False
    try_cython = True
except ImportError:
    print("**************************************************")
    print("WARNING: Cython is not currently installed. "
          "Falling back to pure Python implementation.")
    print("**************************************************")
    try_cython = False

class BuildFailed(Exception):
    pass

# This is how I was originally trying to get around the Cython extension troubles...
# Keeping it here for reference...
#
# class BuildExtCompilerCheck(build_ext):
#     def build_extensions(self):
#         if sys.platform == 'win32' and ('MSC' in sys.version or 'MSVC' in sys.version):
#             print("-> COMPILER IS", self.compiler.compiler_type)
#             from distutils.msvccompiler import MSVCCompiler
#             if isinstance(self.compiler, MSVCCompiler):
#                 build_ext.build_extensions(self)
#             else:
#                 print("WARNING: The C extensions will not be built since the necessary compiler could not be found.\n"
#                       "See https://github.com/bsmurphy/PyKrige/issues/8")
#         else:
#             build_ext.build_extensions(self)

def run_setup(with_cython):
    if with_cython:
        import numpy as np
        if sys.platform != 'win32':
            compile_args = dict(extra_compile_args=['-O2', '-march=core2', '-mtune=corei7'],
                                extra_link_args=['-O2', '-march=core2', '-mtune=corei7'])
        else:
            compile_args = {}

        ext_modules = [Extension("pykrige.lib.cok", ["pykrige/lib/cok.pyx"], **compile_args),
                       Extension("pykrige.lib.variogram_models", ["pykrige/lib/variogram_models.pyx"], **compile_args)]

        # Transfered python 3 switch here. On python 3 machines, will use lapack_py3.pyx
        # instead of lapack.pyx to build .lib.lapack
        if sys.version_info[0] == 3:
            ext_modules += [Extension("pykrige.lib.lapack", ["pykrige/lib/lapack_py3.pyx"], **compile_args)]
        else:
            ext_modules += [Extension("pykrige.lib.lapack", ["pykrige/lib/lapack.pyx"], **compile_args)]

        class TryBuildExt(build_ext):
            def build_extensions(self):
                try:
                    build_ext.build_extensions(self)
                except ext_errors:
                    print("**************************************************")
                    print("WARNING: Cython extensions failed to build. Falling back to pure Python implementation.\n"
                         "See https://github.com/bsmurphy/PyKrige/issues/8 for more information.")
                    print("**************************************************")
                    raise BuildFailed()

        cmd = {'build_ext': TryBuildExt}

        setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL, url=URL, description=DESC,
              long_description=LDESC, packages=PACKAGES, package_data=PCKG_DAT, classifiers=CLSF,
              ext_modules=ext_modules, include_dirs=[np.get_include()], cmdclass=cmd)

    else:
        setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL, url=URL, description=DESC,
              long_description=LDESC, packages=PACKAGES, package_data=PCKG_DAT, classifiers=CLSF)

try:
    run_setup(try_cython)
except BuildFailed:
    run_setup(False)
<commit_msg>Version 1.3.1<commit_after>from __future__ import absolute_import
from __future__ import print_function

"""
Updated BSM 10/23/2015
Cython extensions work-around adapted from simplejson setup script:
https://github.com/simplejson/simplejson/blob/0bcdf20cc525c1343b796cb8f247ea5213c6557e/setup.py#L110
"""

import sys
from os.path import join
from setuptools import setup, Extension
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)

NAME = 'PyKrige'
VERSION = '1.3.1'
AUTHOR = 'Benjamin S. Murphy'
EMAIL = 'bscott.murphy@gmail.com'
URL = 'https://github.com/bsmurphy/PyKrige'
DESC = 'Kriging Toolkit for Python'
LDESC = 'PyKrige is a kriging toolkit for Python that supports two- and ' \
        'three-dimensional ordinary and universal kriging.'
PACKAGES = ['pykrige']
PCKG_DAT = {'pykrige': ['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'MANIFEST.in',
                        join('test_data', '*.txt'), join('test_data', '*.asc')]}
REQ = ['numpy', 'scipy', 'matplotlib']

for req in REQ:
    try:
        __import__(req)
    except ImportError:
        print("**************************************************")
        print("Error: PyKrige relies on the installation of the SciPy stack "
              "(Numpy, SciPy, matplotlib) to work. For instructions for "
              "installation, please view https://www.scipy.org/install.html."
              "\n {} missing".format(req)
              )
        print("**************************************************")
        raise
        sys.exit(1)
# python setup.py install goes through REQ in reverse order than pip

CLSF = ['Development Status :: 5 - Production/Stable',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering',
        'Topic :: Scientific/Engineering :: GIS']

# Removed python 3 switch from here
try:
    from Cython.Distutils import build_ext
    import Cython.Compiler.Options
    Cython.Compiler.Options.annotate = False
    try_cython = True
except ImportError:
    print("**************************************************")
    print("WARNING: Cython is not currently installed. "
          "Falling back to pure Python implementation.")
    print("**************************************************")
    try_cython = False

class BuildFailed(Exception):
    pass

# This is how I was originally trying to get around the Cython extension troubles...
# Keeping it here for reference...
#
# class BuildExtCompilerCheck(build_ext):
#     def build_extensions(self):
#         if sys.platform == 'win32' and ('MSC' in sys.version or 'MSVC' in sys.version):
#             print("-> COMPILER IS", self.compiler.compiler_type)
#             from distutils.msvccompiler import MSVCCompiler
#             if isinstance(self.compiler, MSVCCompiler):
#                 build_ext.build_extensions(self)
#             else:
#                 print("WARNING: The C extensions will not be built since the necessary compiler could not be found.\n"
#                       "See https://github.com/bsmurphy/PyKrige/issues/8")
#         else:
#             build_ext.build_extensions(self)

def run_setup(with_cython):
    if with_cython:
        import numpy as np
        if sys.platform != 'win32':
            compile_args = dict(extra_compile_args=['-O2', '-march=core2', '-mtune=corei7'],
                                extra_link_args=['-O2', '-march=core2', '-mtune=corei7'])
        else:
            compile_args = {}

        ext_modules = [Extension("pykrige.lib.cok", ["pykrige/lib/cok.pyx"], **compile_args),
                       Extension("pykrige.lib.variogram_models", ["pykrige/lib/variogram_models.pyx"], **compile_args)]

        # Transfered python 3 switch here. On python 3 machines, will use lapack_py3.pyx
        # instead of lapack.pyx to build .lib.lapack
        if sys.version_info[0] == 3:
            ext_modules += [Extension("pykrige.lib.lapack", ["pykrige/lib/lapack_py3.pyx"], **compile_args)]
        else:
            ext_modules += [Extension("pykrige.lib.lapack", ["pykrige/lib/lapack.pyx"], **compile_args)]

        class TryBuildExt(build_ext):
            def build_extensions(self):
                try:
                    build_ext.build_extensions(self)
                except ext_errors:
                    print("**************************************************")
                    print("WARNING: Cython extensions failed to build. Falling back to pure Python implementation.\n"
                         "See https://github.com/bsmurphy/PyKrige/issues/8 for more information.")
                    print("**************************************************")
                    raise BuildFailed()

        cmd = {'build_ext': TryBuildExt}

        setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL, url=URL, description=DESC,
              long_description=LDESC, packages=PACKAGES, package_data=PCKG_DAT, classifiers=CLSF,
              ext_modules=ext_modules, include_dirs=[np.get_include()], cmdclass=cmd)

    else:
        setup(name=NAME, version=VERSION, author=AUTHOR, author_email=EMAIL, url=URL, description=DESC,
              long_description=LDESC, packages=PACKAGES, package_data=PCKG_DAT, classifiers=CLSF)

try:
    run_setup(try_cython)
except BuildFailed:
    run_setup(False)
<|endoftext|>


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

from __future__ import unicode_literals

from setuptools import setup
import sys

install_requires = [
    'pycrypto',
    'pyyaml',
]

extras_require = {
    'test': ['coverage', 'mock', 'nose'],
}

if sys.version_info < (2, 7, 0):
    install_requires.append('argparse')
    extras_require['test'].append('unittest2')

setup(
    name='ppillar',
    version='0.2.0',
    author='Tarjei Husøy',
    author_email='tarjei@roms.no',
    url='https://github.com/thusoy/public-pillar',
    description="A PKI-encrypted datastructure to keep secrets in the public",
    py_modules=['ppillar'],
    install_requires=install_requires,
    extras_require=extras_require,
    entry_points={
        'console_scripts': [
            'ppillar = ppillar:cli',
        ]
    },
    classifiers=[
        # 'Development Status :: 1 - Planning',
        # 'Development Status :: 2 - Pre-Alpha',
        # 'Development Status :: 3 - Alpha',
        'Development Status :: 4 - Beta',
        # 'Development Status :: 5 - Production/Stable',
        # 'Development Status :: 6 - Mature',
        # 'Development Status :: 7 - Inactive',
        'Environment :: Console',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Security',
        'Topic :: System :: Systems Administration',
        'Topic :: Utilities',
    ],
)
<commit_msg>Bump version to 0.2.1<commit_after>#!/usr/bin/env python
# -*- encoding: utf-8 -*-

from __future__ import unicode_literals

from setuptools import setup
import sys

install_requires = [
    'pycrypto',
    'pyyaml',
]

extras_require = {
    'test': ['coverage', 'mock', 'nose'],
}

if sys.version_info < (2, 7, 0):
    install_requires.append('argparse')
    extras_require['test'].append('unittest2')

setup(
    name='ppillar',
    version='0.2.1',
    author='Tarjei Husøy',
    author_email='tarjei@roms.no',
    url='https://github.com/thusoy/public-pillar',
    description="A PKI-encrypted datastructure to keep secrets in the public",
    py_modules=['ppillar'],
    install_requires=install_requires,
    extras_require=extras_require,
    entry_points={
        'console_scripts': [
            'ppillar = ppillar:cli',
        ]
    },
    classifiers=[
        # 'Development Status :: 1 - Planning',
        # 'Development Status :: 2 - Pre-Alpha',
        # 'Development Status :: 3 - Alpha',
        'Development Status :: 4 - Beta',
        # 'Development Status :: 5 - Production/Stable',
        # 'Development Status :: 6 - Mature',
        # 'Development Status :: 7 - Inactive',
        'Environment :: Console',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Security',
        'Topic :: System :: Systems Administration',
        'Topic :: Utilities',
    ],
)
<|endoftext|>


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

import pip.download

from pip.req import parse_requirements

from setuptools import find_packages, setup

exec(open('company/package/version.py').read())

def requirements(requirements_file):
    """Return package mentioned in the given file.
    Args:
        requirements_file (str): path to the requirements file to be parsed.
    Returns:
        (list): 3rd-party package dependencies contained in the file.
    """
    return [
        str(pkg.req) for pkg in parse_requirements(
            requirements_file, session=pip.download.PipSession())]

setup(name='primogen',
      version=__version__,
      description='Python basic package.',
      author='Pedro Salgado',
      author_email='steenzout@ymail.com',
      maintainer='Pedro Salgado',
      maintainer_email='steenzout@ymail.com',
      url='https://github.com/steenzout/python-package',
      namespace_packages=('company',),
      packages=find_packages(exclude=('*.tests', '*.tests.*', 'tests.*', 'tests')),
      install_requires=requirements('requirements.txt'),
      tests_require=requirements('requirements-test.txt'))
<commit_msg>added newlines.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pip.download

from pip.req import parse_requirements

from setuptools import find_packages, setup

exec(open('company/package/version.py').read())

def requirements(requirements_file):
    """Return package mentioned in the given file.

    Args:
        requirements_file (str): path to the requirements file to be parsed.

    Returns:
        (list): 3rd-party package dependencies contained in the file.
    """
    return [
        str(pkg.req) for pkg in parse_requirements(
            requirements_file, session=pip.download.PipSession())]

setup(name='primogen',
      version=__version__,
      description='Python basic package.',
      author='Pedro Salgado',
      author_email='steenzout@ymail.com',
      maintainer='Pedro Salgado',
      maintainer_email='steenzout@ymail.com',
      url='https://github.com/steenzout/python-package',
      namespace_packages=('company',),
      packages=find_packages(exclude=('*.tests', '*.tests.*', 'tests.*', 'tests')),
      install_requires=requirements('requirements.txt'),
      tests_require=requirements('requirements-test.txt'))
<|endoftext|>


<commit_before>import json
from setuptools import setup, find_packages

with open('devilry/version.json') as versionfile:
    version = json.load(versionfile)

setup(
    name="devilry",
    version=version,
    url='http://devilry.org',
    license='BSD',
    zip_safe=False,
    author=(u'Tor Johansen, Espen Angell Kristiansen, Bendik Opstad, Vegard Angell, '
            u'Magne Westlie, Ilya Kostolomov, Christian Tryti, Rebekka M\u00F8rken'),
    author_email='devilry-contact@googlegroups.com',
    include_package_data=True,
    description="A system for handling electronic deliveries. See https://github.com/devilry/devilry-django.",
    packages=find_packages(),
    install_requires=[
        'setuptools',
        'pyyaml==3.10',
        'Markdown==2.3.1',
        'Pygments==1.5',
        'flup==1.0.2',
        'django-extjs4==1.1.4-extjs4.1.1',
        'gunicorn==0.17.2',
        'django-crispy-forms==1.4.0',
        'openpyxl==1.6.1',
        'django==1.6.5',
        'URLObject==2.0.1',
        'django-simple-rest==1.4.1',
        'mimeparse==0.1.3',
        'django_errortemplates==1.0.1',
        'numpy==1.6.2',
        'amqp==1.4.6',
        'anyjson==0.3.3',
        'billiard==3.3.0.19',
        'celery==3.1.17',
        'kombu==3.0.24',
        'python-dateutil==1.5',
        'pytz==2012j',
        'django-celery-transactions==0.2.0',
        'django-haystack==2.3.1',
        'httplib2==0.7.7',
        'South==1.0.0',
        'detektor==1.1.0-beta.012',
        'djangorestframework==0.3.3',
        'django_cradmin==1.0.0-beta.018',
        'dj-static>=0.0.6',
        'dj-database-url>=0.3.0'
    ]
)
<commit_msg>setup.py: Removed djangorestframework.<commit_after>import json
from setuptools import setup, find_packages

with open('devilry/version.json') as versionfile:
    version = json.load(versionfile)

setup(
    name="devilry",
    version=version,
    url='http://devilry.org',
    license='BSD',
    zip_safe=False,
    author=(u'Tor Johansen, Espen Angell Kristiansen, Bendik Opstad, Vegard Angell, '
            u'Magne Westlie, Ilya Kostolomov, Christian Tryti, Rebekka M\u00F8rken'),
    author_email='devilry-contact@googlegroups.com',
    include_package_data=True,
    description="A system for handling electronic deliveries. See https://github.com/devilry/devilry-django.",
    packages=find_packages(),
    install_requires=[
        'setuptools',
        'pyyaml==3.10',
        'Markdown==2.3.1',
        'Pygments==1.5',
        'flup==1.0.2',
        'django-extjs4==1.1.4-extjs4.1.1',
        'gunicorn==0.17.2',
        'django-crispy-forms==1.4.0',
        'openpyxl==1.6.1',
        'django==1.6.5',
        'URLObject==2.0.1',
        'django-simple-rest==1.4.1',
        'mimeparse==0.1.3',
        'django_errortemplates==1.0.1',
        'numpy==1.6.2',
        'amqp==1.4.6',
        'anyjson==0.3.3',
        'billiard==3.3.0.19',
        'celery==3.1.17',
        'kombu==3.0.24',
        'python-dateutil==1.5',
        'pytz==2012j',
        'django-celery-transactions==0.2.0',
        'django-haystack==2.3.1',
        'httplib2==0.7.7',
        'South==1.0.0',
        'detektor==1.1.0-beta.012',
        'django_cradmin==1.0.0-beta.018',
        'dj-static>=0.0.6',
        'dj-database-url>=0.3.0'
    ]
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='md2latex',
    version='0.0.1',
    author='Kavin Yao',
    author_email='kavinyao@gmail.com',
    packages=['md2latex'],
    scripts=['bin/md2latex'],
    url='https://github.com/kavinyao/md2latex',
    license='LICENSE',
    description='Simple markdown to LaTeX converter.',
    long_description=open('README.md').read(),
    install_requires=[
        "mistune == 0.2.0",
    ],
)
<commit_msg>update setup.py<commit_after>from distutils.core import setup

setup(
    name='md2latex',
    version='0.0.1',
    author='Kavin Yao',
    author_email='kavinyao@gmail.com',
    py_modules=['md2latex'],
    scripts=['bin/md2latex'],
    url='https://github.com/kavinyao/md2latex',
    license='MIT',
    description='Simple markdown to LaTeX converter.',
    long_description=open('README.md').read(),
    install_requires=[
        "mistune == 0.2.0",
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from codecs import open

from setuptools import find_packages, setup

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

def read(*paths):
    """Build a file path from *paths and return the contents."""
    with open(os.path.join(*paths), 'r', 'utf-8') as f:
        return f.read()

extras_require = {}

requires = [
    'asgiref==0.14.0',
    'channels==0.17.2',
    'Django==1.10',
    'dj-database-url==0.4.1',
    'django-braces==1.9.0',
    'django-configurations==2.0',
    'django-crispy-forms==1.6.0',
    'django-grappelli==2.8.1',
    'django-model-utils==2.5.1',
    'envdir==0.7',
    'psycopg2==2.6.2',
    'pytz==2016.6.1',
]

setup(
    name='ariane',
    version='0.1.0',
    description='A short description of the project.',
    long_description=read(BASE_DIR, 'README.rst'),
    author='Max Brauer <max@max-brauer.de>',
    author_email='max@max-brauer.de',
    packages=find_packages(),
    include_package_data=True,
    scripts=['manage.py'],
    install_requires=requires,
    license='BSD',
    zip_safe=False,
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: Implementation :: CPython',
    ],
)
<commit_msg>[requires.io] dependency update<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from codecs import open

from setuptools import find_packages, setup

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

def read(*paths):
    """Build a file path from *paths and return the contents."""
    with open(os.path.join(*paths), 'r', 'utf-8') as f:
        return f.read()

extras_require = {}

requires = [
    'asgiref==0.14.0',
    'channels==0.17.2',
    'Django==1.10',
    'dj-database-url==0.4.1',
    'django-braces==1.9.0',
    'django-configurations==2.0',
    'django-crispy-forms==1.6.0',
    'django-grappelli==2.8.1',
    'django-model-utils==2.5.2',
    'envdir==0.7',
    'psycopg2==2.6.2',
    'pytz==2016.6.1',
]

setup(
    name='ariane',
    version='0.1.0',
    description='A short description of the project.',
    long_description=read(BASE_DIR, 'README.rst'),
    author='Max Brauer <max@max-brauer.de>',
    author_email='max@max-brauer.de',
    packages=find_packages(),
    include_package_data=True,
    scripts=['manage.py'],
    install_requires=requires,
    license='BSD',
    zip_safe=False,
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: Implementation :: CPython',
    ],
)
<|endoftext|>


<commit_before>import os
from setuptools import find_packages, setup

VERSION = '2.0.0'

def read(fname):
    try:
        with open(os.path.join(os.path.dirname(__file__), fname)) as fh:
            return fh.read()
    except IOError:
        return ''

setup(
    name='django-fakery',
    version=VERSION,
    url='https://github.com/fcurella/django-fakery/',
    author='Flavio Curella',
    author_email='flavio.curella@gmail.com',
    description='A model instances generator for Django',
    long_description=read('README.rst'),
    license='MIT',
    packages=find_packages(exclude=["docs", "tests", "tests.*"]),
    platforms=["any"],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    install_requires=[
        "Faker>=0.8.0,<0.9.0",
        "Django>=1.8",
        "six>=1.10.1",
    ],
    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
    test_suite='tests.runtests.runtests',
)
<commit_msg>fix requirement in setup.py<commit_after>import os
from setuptools import find_packages, setup

VERSION = '2.0.0'

def read(fname):
    try:
        with open(os.path.join(os.path.dirname(__file__), fname)) as fh:
            return fh.read()
    except IOError:
        return ''

setup(
    name='django-fakery',
    version=VERSION,
    url='https://github.com/fcurella/django-fakery/',
    author='Flavio Curella',
    author_email='flavio.curella@gmail.com',
    description='A model instances generator for Django',
    long_description=read('README.rst'),
    license='MIT',
    packages=find_packages(exclude=["docs", "tests", "tests.*"]),
    platforms=["any"],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    install_requires=[
        "Faker>=0.8.0,<0.9.0",
        "Django>=1.11",
        "six>=1.10.1",
    ],
    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
    test_suite='tests.runtests.runtests',
)
<|endoftext|>