<commit_before>from setuptools import setup, find_packages

with open("README") as file:
    long_description = file.read()

setup(
    name = "gscripts",
    long_description = long_description,
    version = "0.1.1",
    packages = find_packages(),

    install_requires = ['setuptools',
                        'pysam >= 0.6',
                        'numpy >= 1.5.1 ',
                        'scipy >= 0.11.0',
                        'matplotlib >= 1.1.0',
                        'pybedtools >= 0.5',
                        'scikit-learn >= 0.13.0',
                        ],

    setup_requires = ["setuptools_git >= 0.3",],
    scripts=['rnaseq/count_tags_C.py',
             'general/calculate_NRF.py',
             'general/calculate_NRF.py',
             'general/make_trackhubs.py',
             'general/negBedGraph.py',
             'clipseq/perform_idr.py',
             'clipseq/run_piranha.py'],

    #metadata for upload to PyPI
    author = "Gabriel Pratt",
    author_email = "gpratt@ucsd.edu",
    description = "A set of scripts for analysis of high throughput data",
    license = "GPL2",
    keywords = "bioinformatics",
    url = "https://github.com/gpratt",

    #Other stuff I feel like including here
    include_package_data = True,
    zip_safe = False #True I think
)
<commit_msg>added installable scripts<commit_after>from setuptools import setup, find_packages

with open("README") as file:
    long_description = file.read()

setup(
    name = "gscripts",
    long_description = long_description,
    version = "0.1.1",
    packages = find_packages(),

    install_requires = ['setuptools',
                        'pysam >= 0.6',
                        'numpy >= 1.5.1 ',
                        'scipy >= 0.11.0',
                        'matplotlib >= 1.1.0',
                        'pybedtools >= 0.5',
                        'scikit-learn >= 0.13.0',
                        ],

    setup_requires = ["setuptools_git >= 0.3",],
    scripts=['rnaseq/count_tags.py',
             'general/calculate_NRF.py',
             'general/calculate_NRF.py',
             'general/make_trackhubs.py',
             'general/negBedGraph.py',
             'clipseq/perform_idr.py',
             'clipseq/run_piranha.py'],

    #metadata for upload to PyPI
    author = "Gabriel Pratt",
    author_email = "gpratt@ucsd.edu",
    description = "A set of scripts for analysis of high throughput data",
    license = "GPL2",
    keywords = "bioinformatics",
    url = "https://github.com/gpratt",

    #Other stuff I feel like including here
    include_package_data = True,
    zip_safe = False #True I think
)
<|endoftext|>


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

"""
Setup file for toolaudit.
"""

import codecs
import os
from setuptools import setup
import toolaudit

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

def read(filename):
    """
    Read the contents of the files listed in filenames and return it as a
    string.
    """
    return codecs.open(os.path.join(here, filename), 'r').read()

setup(
    name='toolaudit',
    version=toolaudit.__version__,
    packages=['toolaudit'],
    install_requires=[
        "argparse>=1.3.0",
        "PyYAML>=3.11",
    ],
    entry_points={
        'console_scripts': [
            'toolaudit = toolaudit:main',
        ],
    },
    author='Jon Stutters',
    author_email='j.stutters@ucl.ac.uk',
    description='Report on the tools used in your software pipeline.',
    long_description=read('README.rst'),
    url='https://github.com/jstutters/toolaudit',
    license='MIT',
    classifiers=[
        'Programming Language :: Python',
        'Development Status :: 3 - Alpha',
        'Natural Language :: English',
        'Environment :: Console',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Topic :: System :: Systems Administration'
    ]
)
<commit_msg>Added six as a dependency (for iteritems)<commit_after>#!/usr/bin/env python

"""
Setup file for toolaudit.
"""

import codecs
import os
from setuptools import setup
import toolaudit

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

def read(filename):
    """
    Read the contents of the files listed in filenames and return it as a
    string.
    """
    return codecs.open(os.path.join(here, filename), 'r').read()

setup(
    name='toolaudit',
    version=toolaudit.__version__,
    packages=['toolaudit'],
    install_requires=[
        "argparse>=1.3.0",
        "PyYAML>=3.11",
        "six>=1.9.0"
    ],
    entry_points={
        'console_scripts': [
            'toolaudit = toolaudit:main',
        ],
    },
    author='Jon Stutters',
    author_email='j.stutters@ucl.ac.uk',
    description='Report on the tools used in your software pipeline.',
    long_description=read('README.rst'),
    url='https://github.com/jstutters/toolaudit',
    license='MIT',
    classifiers=[
        'Programming Language :: Python',
        'Development Status :: 3 - Alpha',
        'Natural Language :: English',
        'Environment :: Console',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Topic :: System :: Systems Administration'
    ]
)
<|endoftext|>


<commit_before>import re
import ast
from setuptools import setup, find_packages

setup(
    name="kblom",
    author="Kim Blomqvist",
    author_email="kblomqvist@iki.fi",
    version="master-branch",
    description="Kim Blomqvist's personal Python library",
    license="MIT",
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        "numpy",
    ],
    classifiers=[
        "Programming Language :: Python :: 3.4",
        "License :: OSI Approved :: MIT License",
    ],
    url="https://github.com/kblomqvist/kblom.py",
    download_url="https://github.com/kblomqvist/kblom.py/tarball/master",
)
<commit_msg>Mark version as 'dev'<commit_after>import re
import ast
from setuptools import setup, find_packages

setup(
    name="kblom",
    author="Kim Blomqvist",
    author_email="kblomqvist@iki.fi",
    version="dev",
    description="Kim Blomqvist's personal Python library",
    license="MIT",
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        "numpy",
    ],
    classifiers=[
        "Programming Language :: Python :: 3.4",
        "License :: OSI Approved :: MIT License",
    ],
    url="https://github.com/kblomqvist/kblom.py",
    download_url="https://github.com/kblomqvist/kblom.py/tarball/master",
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
__revision__ = "$Id: $" # for the SVN Id
import sys
import os
from setuptools import setup, find_packages
import glob

_MAJOR               = 0
_MINOR               = 1
_MICRO               = 4
version              = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
release              = '%d.%d' % (_MAJOR, _MINOR)

metainfo = {
    'authors': {"main": ("yourname", "email@whatever.org")},
    'version': version,
    'license' : 'GPL',
    'download_url' : ['http://pypi.python.org/pypi/sequana'],
    'url' : ["http://github.com/sequana/"],
    'description': "Put a short description here" ,
    'platforms' : ['Linux', 'Unix', 'MacOsX', 'Windows'],
    'keywords' : [''],
    'classifiers' : [
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 2.7',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
          'Topic :: Scientific/Engineering :: Information Analysis',
          'Topic :: Scientific/Engineering :: Mathematics',
          'Topic :: Scientific/Engineering :: Physics']
    }

packages = find_packages()
packages = [this for this in packages if this.startswith('test.') is False]
packages = [this for this in packages if this not in ['test', 'pipelines']]

setup(
    name             = "sequana",
    version          = version,
    maintainer       = metainfo['authors']['main'][0],
    maintainer_email = metainfo['authors']['main'][1],
    author           = metainfo['authors']['main'][0],
    author_email     = metainfo['authors']['main'][1],
    long_description = open("README.rst").read(),
    keywords         = metainfo['keywords'],
    description      = metainfo['description'],
    license          = metainfo['license'],
    platforms        = metainfo['platforms'],
    url              = metainfo['url'],
    download_url     = metainfo['download_url'],
    classifiers      = metainfo['classifiers'],

    # package installation
    packages = packages,

    install_requires = ["easydev>=0.9.21", "reports>=0.1.8", "matplotlib",
        "pandas", "cutadapt>=1.9.1", "pysam", "pyVCF", "sphinx-gallery",
        "mock", "numpydoc"],

    # here below '': pattern means include that pattern in all packages
    # so '' :['README.rst'] will include all README.rst recursively
    # required to use python setup.py install

    # This is recursive include of data files
    exclude_package_data = {"": ["__pycache__"]},
    package_data = {
        '': ['Snakefile*', '*html', 'README.rst', 'config.yaml*', '*.css', "*.js",
                "snpEff.config*", "*.fa"],
        'sequana.rules' : ['*/*.rules'],
        'sequana.resources.data' : ['*'],
        'sequana.resources.testing' : ['*'],
        'sequana.resources.js/galleria/themes' : ['*'],
        },

    # thise files do not need to be added in MANIFEST.in since there are python
    # packages that will be copied from sequana/ into sequana/
    # Note, however, that e.g. ./pipelines must be added

    zip_safe=False,
    entry_points = {
        'console_scripts':[
           'fastq_head=sequana.scripts.fastq_head:main',
           'fastq_count=sequana.scripts.fastq_count:main',
           'sequana=sequana.scripts.main:main'
        ]
    },

)
<commit_msg>[skip ci] simplify setup to reflect the removql of the ./pipelines directory<commit_after># -*- coding: utf-8 -*-
__revision__ = "$Id: $" # for the SVN Id
import sys
import os
from setuptools import setup, find_packages
import glob

_MAJOR               = 0
_MINOR               = 1
_MICRO               = 4
version              = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
release              = '%d.%d' % (_MAJOR, _MINOR)

metainfo = {
    'authors': {"main": ("yourname", "email@whatever.org")},
    'version': version,
    'license' : 'GPL',
    'download_url' : ['http://pypi.python.org/pypi/sequana'],
    'url' : ["http://github.com/sequana/"],
    'description': "Put a short description here" ,
    'platforms' : ['Linux', 'Unix', 'MacOsX', 'Windows'],
    'keywords' : [''],
    'classifiers' : [
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 2.7',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
          'Topic :: Scientific/Engineering :: Information Analysis',
          'Topic :: Scientific/Engineering :: Mathematics',
          'Topic :: Scientific/Engineering :: Physics']
    }

packages = find_packages()
packages = [this for this in packages if this.startswith('test.') is False]
packages = [this for this in packages if this not in ['test']]

setup(
    name             = "sequana",
    version          = version,
    maintainer       = metainfo['authors']['main'][0],
    maintainer_email = metainfo['authors']['main'][1],
    author           = metainfo['authors']['main'][0],
    author_email     = metainfo['authors']['main'][1],
    long_description = open("README.rst").read(),
    keywords         = metainfo['keywords'],
    description      = metainfo['description'],
    license          = metainfo['license'],
    platforms        = metainfo['platforms'],
    url              = metainfo['url'],
    download_url     = metainfo['download_url'],
    classifiers      = metainfo['classifiers'],

    # package installation
    packages = packages,

    install_requires = ["easydev>=0.9.21", "reports>=0.1.8", "matplotlib",
        "pandas", "cutadapt>=1.9.1", "pysam", "pyVCF", "sphinx-gallery",
        "mock", "numpydoc"],

    # here below '': pattern means include that pattern in all packages
    # so '' :['README.rst'] will include all README.rst recursively
    # required to use python setup.py install

    # This is recursive include of data files
    exclude_package_data = {"": ["__pycache__"]},
    package_data = {
        '': ['Snakefile*', '*html', 'README.rst', 'config.yaml*', '*.css', "*.js",
                "snpEff.config*", "*.fa"],
        'sequana.rules' : ['*/*.rules'],
        'sequana.resources.data' : ['*'],
        'sequana.resources.testing' : ['*'],
        'sequana.resources.js/galleria/themes' : ['*'],
        },

    # thise files do not need to be added in MANIFEST.in since there are python
    # packages that will be copied from sequana/ into sequana/
    # Note, however, that e.g. ./pipelines must be added

    zip_safe=False,
    entry_points = {
        'console_scripts':[
           'fastq_head=sequana.scripts.fastq_head:main',
           'fastq_count=sequana.scripts.fastq_count:main',
           'sequana=sequana.scripts.main:main'
        ]
    },

)
<|endoftext|>


<commit_before>from setuptools import setup
from setuptools import find_packages

setup(
    name='dashboard',
    version='5.0.3',
    author='Kristoffer Snabb',
    url='https://github.com/geonition/dashboard',
    packages=find_packages(),
    include_package_data=True,
    package_data = {
    "dashboard": [
        "templates/*",
        "static/styles/*",
        "static/img/*",
        "static/json/*",
        "locale/*/LC_MESSAGES/*"
        ]
        },
    zip_safe=False,
    install_requires=[
       'django',
       'django-modeltranslation'
    ]
)
<commit_msg>Version number increase<commit_after>from setuptools import setup
from setuptools import find_packages

setup(
    name='dashboard',
    version='5.0.4',
    author='Kristoffer Snabb',
    url='https://github.com/geonition/dashboard',
    packages=find_packages(),
    include_package_data=True,
    package_data = {
    "dashboard": [
        "templates/*",
        "static/styles/*",
        "static/img/*",
        "static/json/*",
        "locale/*/LC_MESSAGES/*"
        ]
        },
    zip_safe=False,
    install_requires=[
       'django',
       'django-modeltranslation'
    ]
)
<|endoftext|>


<commit_before>from setuptools import find_packages
from setuptools import setup

try:
    from pypandoc import convert
    read_md = lambda f: convert(f, 'rst')
except ImportError:
    print("warning: pypandoc module not found, could not convert Markdown to RST")
    read_md = lambda f: open(f, 'r').read()
requires=[i.strip() for i in open("requirements.txt").readlines()]

setup(
    name='videoscene',
    version="1.0.0",
    description='Parse scene release tags',
    long_description=read_md('README.md'),
    author='Walid Saad',
    author_email='walid.sa3d@gmail.com',
    url='http://github.com/walidsa3d/videoscene',
    packages=find_packages(),
    package_data={'': ['LICENSE']},
    include_package_data=True,
    install_requires=requires,
    test_suite="tests",
    license="MIT",
    zip_safe=False,

)<commit_msg>fixed setup.py<commit_after>from setuptools import find_packages
from setuptools import setup

try:
    from pypandoc import convert
    read_md = lambda f: convert(f, 'rst')
except ImportError:
    print("warning: pypandoc module not found, could not convert Markdown to RST")
    read_md = lambda f: open(f, 'r').read()
requires=[i.strip() for i in open("requirements.txt").readlines()]

setup(
    name='videoscene',
    version="0.1.0",
    description='Parse scene release tags',
    long_description=read_md('README.md'),
    author='Walid Saad',
    author_email='walid.sa3d@gmail.com',
    url='http://github.com/walidsa3d/videoscene',
    packages=find_packages(),
    package_data={'': ['LICENSE']},
    include_package_data=True,
    install_requires=requires,
    test_suite="tests",
    license="MIT",
    zip_safe=False,

)
<|endoftext|>


<commit_before>import os
import re

from setuptools import find_packages, setup

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

def read(*parts):
    with open(os.path.join(HERE, *parts)) as f:
        return f.read()

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

setup(
    name='seaworthy',
    version=find_version('seaworthy', '__init__.py'),
    license='BSD',
    url='https://github.com/praekeltfoundation/seaworthy',
    description='Test Docker container images',
    author='Praekelt.org SRE team',
    author_email='sre@praekelt.org',
    long_description=read('README.rst'),
    packages=find_packages(),
    install_requires=[
        'attrs',
        # https://github.com/docker/docker-py/issues/2082
        'docker[tls]>=3.2,<4',
        'hyperlink',
        'requests',
    ],
    extras_require={
        'pytest': [
            'pytest>=3.0.0',
        ],
        'testtools': [
            'testtools',
        ],
        'test': [
            'pytest>=3.0.0',
            'responses',
            'testtools',
        ],
        'test-core': [
            'responses',
        ],
        'docstest': [
            'doc8',
            'readme_renderer',
            'Sphinx>=1.7,<1.8',
            'sphinx_rtd_theme',
        ],
        'pep8test': [
            'flake8',
            'flake8-import-order',
            'pep8-naming',
        ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Pytest',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: Testing',
    ],
    entry_points={
        'pytest11': ['seaworthy = seaworthy.pytest'],
    },
)
<commit_msg>Specify minimum attrs version.<commit_after>import os
import re

from setuptools import find_packages, setup

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

def read(*parts):
    with open(os.path.join(HERE, *parts)) as f:
        return f.read()

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

setup(
    name='seaworthy',
    version=find_version('seaworthy', '__init__.py'),
    license='BSD',
    url='https://github.com/praekeltfoundation/seaworthy',
    description='Test Docker container images',
    author='Praekelt.org SRE team',
    author_email='sre@praekelt.org',
    long_description=read('README.rst'),
    packages=find_packages(),
    install_requires=[
        'attrs>=17.4.0',
        # https://github.com/docker/docker-py/issues/2082
        'docker[tls]>=3.2,<4',
        'hyperlink',
        'requests',
    ],
    extras_require={
        'pytest': [
            'pytest>=3.0.0',
        ],
        'testtools': [
            'testtools',
        ],
        'test': [
            'pytest>=3.0.0',
            'responses',
            'testtools',
        ],
        'test-core': [
            'responses',
        ],
        'docstest': [
            'doc8',
            'readme_renderer',
            'Sphinx>=1.7,<1.8',
            'sphinx_rtd_theme',
        ],
        'pep8test': [
            'flake8',
            'flake8-import-order',
            'pep8-naming',
        ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Pytest',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: Testing',
    ],
    entry_points={
        'pytest11': ['seaworthy = seaworthy.pytest'],
    },
)
<|endoftext|>


<commit_before>from ez_setup import use_setuptools
use_setuptools()

from setuptools import setup, find_packages

setup(
    name='urbansim',
    version='0.2dev',
    description='Tool for modeling metropolitan real estate markets',
    author='Synthicity',
    author_email='ffoti@berkeley.edu',
    license='AGPL',
    url='https://github.com/synthicity/urbansim',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 2.7',
        'License :: OSI Approved :: GNU Affero General Public License v3'
    ],
    packages=find_packages(exclude=['*.tests']),
    package_data={'urbansim.urbansim': ['templates/*.template']},
    install_requires=[
        'bottle>=0.12.5',
        'cliff>=1.5.2',
        'Django>=1.6.2',
        'jinja2>=2.7.2',
        'numpy>=1.8.0',
        'pandas>=0.13.1',
        'patsy>=0.2.1',
        'pyyaml>=3.10',
        'scipy>=0.13.3',
        'shapely>=1.3.0',
        'simplejson>=3.3.3',
        'statsmodels>=0.5.0',
        'tables>=3.1.0'
    ],
    entry_points={
        'console_scripts': [
            'urbansim = urbansim.cli:main'
        ],
        'urbansim.commands': [
            'compile = urbansim.urbansim.compilecli:Compile',
            'serve = urbansim.server.servecli:Serve'
        ]
    }
)
<commit_msg>Add prettytable to the requirements for console reports.<commit_after>from ez_setup import use_setuptools
use_setuptools()

from setuptools import setup, find_packages

setup(
    name='urbansim',
    version='0.2dev',
    description='Tool for modeling metropolitan real estate markets',
    author='Synthicity',
    author_email='ffoti@berkeley.edu',
    license='AGPL',
    url='https://github.com/synthicity/urbansim',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 2.7',
        'License :: OSI Approved :: GNU Affero General Public License v3'
    ],
    packages=find_packages(exclude=['*.tests']),
    package_data={'urbansim.urbansim': ['templates/*.template']},
    install_requires=[
        'bottle>=0.12.5',
        'cliff>=1.5.2',
        'Django>=1.6.2',
        'jinja2>=2.7.2',
        'numpy>=1.8.0',
        'pandas>=0.13.1',
        'patsy>=0.2.1',
        'prettytable>=0.7.2',
        'pyyaml>=3.10',
        'scipy>=0.13.3',
        'shapely>=1.3.0',
        'simplejson>=3.3.3',
        'statsmodels>=0.5.0',
        'tables>=3.1.0'
    ],
    entry_points={
        'console_scripts': [
            'urbansim = urbansim.cli:main'
        ],
        'urbansim.commands': [
            'compile = urbansim.urbansim.compilecli:Compile',
            'serve = urbansim.server.servecli:Serve'
        ]
    }
)
<|endoftext|>


<commit_before>from distutils.core import setup, Extension
from distutils.command.sdist import sdist as _sdist
import os

VERSION = '0.0.4'

datafiles = [('share/man/man1', ['man/oz-install.1', 'man/oz-customize.1',
                                 'man/oz-generate-icicle.1'])
             ]

class sdist(_sdist):
    """ custom sdist command, to prep oz.spec file for inclusion """

    def run(self):
        cmd = (""" sed -e "s/@VERSION@/%s/g" < oz.spec.in """ %
               VERSION) + " > oz.spec"
        os.system(cmd)

        _sdist.run(self)

setup(name='oz',
      version=VERSION,
      description='Oz automated installer',
      author='Chris Lalancette',
      author_email='clalance@redhat.com',
      license='LGPLv2',
      url='http://deltacloud.org',
      package_dir={'oz': 'oz'},
      package_data={'oz': ['auto/*', 'guesttools/*']},
      packages=['oz'],
      scripts=['oz-install', 'oz-generate-icicle', 'oz-customize'],
      cmdclass={'sdist': sdist},
      data_files = datafiles,
      )
<commit_msg>Update the website address.<commit_after>from distutils.core import setup, Extension
from distutils.command.sdist import sdist as _sdist
import os

VERSION = '0.0.4'

datafiles = [('share/man/man1', ['man/oz-install.1', 'man/oz-customize.1',
                                 'man/oz-generate-icicle.1'])
             ]

class sdist(_sdist):
    """ custom sdist command, to prep oz.spec file for inclusion """

    def run(self):
        cmd = (""" sed -e "s/@VERSION@/%s/g" < oz.spec.in """ %
               VERSION) + " > oz.spec"
        os.system(cmd)

        _sdist.run(self)

setup(name='oz',
      version=VERSION,
      description='Oz automated installer',
      author='Chris Lalancette',
      author_email='clalance@redhat.com',
      license='LGPLv2',
      url='http://aeolusproject.org/oz.html',
      package_dir={'oz': 'oz'},
      package_data={'oz': ['auto/*', 'guesttools/*']},
      packages=['oz'],
      scripts=['oz-install', 'oz-generate-icicle', 'oz-customize'],
      cmdclass={'sdist': sdist},
      data_files = datafiles,
      )
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
"""Python toolkit for generating and analyzing nanostructure data"""

from __future__ import absolute_import, division, print_function
__docformat__ = 'restructuredtext'

import os
import sys
import subprocess

from setuptools import find_packages

from numpy.distutils.core import setup

if sys.version_info[:2] < (2, 7):
    raise RuntimeError("Python version 2.7 required.")

DISTNAME = 'scikit-nano'
DESCRIPTION = __doc__
LONG_DESCRIPTION = open('README.rst').read()
AUTHOR = 'Andrew Merrill'
AUTHOR_EMAIL = 'androomerrill@gmail.com'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
URL = 'http://projects.geekcode.io/scikit-nano/doc'
DOWNLOAD_URL = 'https://github.com/androomerrill/scikit-nano'
KEYWORDS = 'nano nano-structures nanostructures nanotubes graphene LAMMPS XYZ'
LICENSE = 'BSD 2-Clause'
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: 2.7
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Chemistry
Topic :: Scientific/Engineering :: Physics
Topic :: Scientific/Engineering :: Visualization
Topic :: Software Development
Topic :: Software Development :: Libraries :: Python Modules

"""

MAJOR = 0
MINOR = 2
MICRO = 24
ISRELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)

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

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

    return GIT_REVISION

def get_version_info():
    # Adding the git rev number needs to be done inside
    # write_version_py(), otherwise the import of sknano.version messes
    # up the build under Python 3.
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    elif os.path.exists('sknano/version.py'):
        # must be a source distribution, use existing version file
        # load it as a separate module to not load sknano/__init__.py
        import imp
        version = imp.load_source('sknano.version', 'sknano/version.py')
        GIT_REVISION = version.git_revision
    else:
        GIT_REVISION = "Unknown"

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

    return FULLVERSION, GIT_REVISION

def write_version_py(filename='sknano/version.py'):
    cnt = """
# THIS FILE IS GENERATED FROM SCIKIT-NANO SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'
git_revision = '%(git_revision)s'
release = %(isrelease)s

if not release:
    version = full_version
"""
    FULLVERSION, GIT_REVISION = get_version_info()

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

def configuration(parent_package='', top_path=None):
    if os.path.exists('MANIFEST'):
        os.remove('MANIFEST')

    from numpy.distutils.misc_util import Configuration
    config = Configuration(None, parent_package, top_path)

    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)

    config.add_subpackage('sknano')

    return config

def setup_package():

    # Rewrite the version file everytime
    write_version_py()

    FULLVERSION, GIT_REVISION = get_version_info()

    setup_options = dict(
        name=DISTNAME,
        version=FULLVERSION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        maintainer=MAINTAINER,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        url=URL,
        download_url=DOWNLOAD_URL,
        license=LICENSE,
        keywords=KEYWORDS,
        classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
        platforms=["Linux", "OS-X", "Unix", "Windows"],
        test_suite='nose.collector',
        configuration=configuration,
        packages=find_packages(exclude=['doc']),
        include_package_data=True,
        exclude_package_data={'': ['*.gif', '*.html', '*.ui']},
        zip_safe=False,
        install_requires=['numpy>=1.8', 'pint>=0.4'],
        entry_points={
            'console_scripts': [
                'nanogen = sknano.scripts.nanogen:main',
                'nanogenui = sknano.scripts.nanogenui:main',
            ]
        }
    )

    setup(**setup_options)

if __name__ == '__main__':
    setup_package()
<commit_msg>updating setup for release of version 0.2.24<commit_after># -*- coding: utf-8 -*-
"""Python toolkit for generating and analyzing nanostructure data"""

from __future__ import absolute_import, division, print_function
__docformat__ = 'restructuredtext'

import os
import sys
import subprocess

from setuptools import find_packages

from numpy.distutils.core import setup

if sys.version_info[:2] < (2, 7):
    raise RuntimeError("Python version 2.7 required.")

DISTNAME = 'scikit-nano'
DESCRIPTION = __doc__
LONG_DESCRIPTION = open('README.rst').read()
AUTHOR = 'Andrew Merrill'
AUTHOR_EMAIL = 'androomerrill@gmail.com'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
URL = 'http://projects.geekcode.io/scikit-nano/doc'
DOWNLOAD_URL = 'https://github.com/androomerrill/scikit-nano'
KEYWORDS = 'nano nano-structures nanostructures nanotubes graphene LAMMPS XYZ'
LICENSE = 'BSD 2-Clause'
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: 2.7
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Chemistry
Topic :: Scientific/Engineering :: Physics
Topic :: Scientific/Engineering :: Visualization
Topic :: Software Development
Topic :: Software Development :: Libraries :: Python Modules

"""

MAJOR = 0
MINOR = 2
MICRO = 24
ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)

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

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

    return GIT_REVISION

def get_version_info():
    # Adding the git rev number needs to be done inside
    # write_version_py(), otherwise the import of sknano.version messes
    # up the build under Python 3.
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    elif os.path.exists('sknano/version.py'):
        # must be a source distribution, use existing version file
        # load it as a separate module to not load sknano/__init__.py
        import imp
        version = imp.load_source('sknano.version', 'sknano/version.py')
        GIT_REVISION = version.git_revision
    else:
        GIT_REVISION = "Unknown"

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

    return FULLVERSION, GIT_REVISION

def write_version_py(filename='sknano/version.py'):
    cnt = """
# THIS FILE IS GENERATED FROM SCIKIT-NANO SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'
git_revision = '%(git_revision)s'
release = %(isrelease)s

if not release:
    version = full_version
"""
    FULLVERSION, GIT_REVISION = get_version_info()

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

def configuration(parent_package='', top_path=None):
    if os.path.exists('MANIFEST'):
        os.remove('MANIFEST')

    from numpy.distutils.misc_util import Configuration
    config = Configuration(None, parent_package, top_path)

    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)

    config.add_subpackage('sknano')

    return config

def setup_package():

    # Rewrite the version file everytime
    write_version_py()

    FULLVERSION, GIT_REVISION = get_version_info()

    setup_options = dict(
        name=DISTNAME,
        version=FULLVERSION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        maintainer=MAINTAINER,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        url=URL,
        download_url=DOWNLOAD_URL,
        license=LICENSE,
        keywords=KEYWORDS,
        classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
        platforms=["Linux", "OS-X", "Unix", "Windows"],
        test_suite='nose.collector',
        configuration=configuration,
        packages=find_packages(exclude=['doc']),
        include_package_data=True,
        exclude_package_data={'': ['*.gif', '*.html', '*.ui']},
        zip_safe=False,
        install_requires=['numpy>=1.8', 'pint>=0.4'],
        entry_points={
            'console_scripts': [
                'nanogen = sknano.scripts.nanogen:main',
                'nanogenui = sknano.scripts.nanogenui:main',
            ]
        }
    )

    setup(**setup_options)

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


<commit_before>from setuptools import setup, find_packages
import os

version = '1.0.14'

requires = [
    'setuptools'
]

api_requires = requires + [
    'openprocurement.api>=2.3',
    'openprocurement.tender.openua',
    'openprocurement.tender.openeu'
]

test_requires = api_requires + requires + [
    'webtest',
    'python-coveralls',
]

docs_requires = requires + [
    'sphinxcontrib-httpdomain',
]

entry_points = {
    'console_scripts': [
        'competitive_dialogue_data_bridge = openprocurement.tender.competitivedialogue.databridge:main'
    ],
    'openprocurement.api.plugins': [
        'competitivedialogue = openprocurement.tender.competitivedialogue:includeme'
    ]
}

databridge_requires = requires + [
    'PyYAML',
    'gevent',
    'LazyDB',
    'ExtendedJournalHandler',
    'openprocurement_client>=1.0b2'
]

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

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

setup(name='openprocurement.tender.competitivedialogue',
      version=version,
      description="",
      long_description=README,
      # Get more strings from
      # http://pypi.python.org/pypi?:action=list_classifiers
      classifiers=[
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        ],
      keywords="web services",
      author='Quintagroup, Ltd.',
      author_email='info@quintagroup.com',
      url='https://github.com/openprocurement/openprocurement.tender.competitivedialogue',
      license='Apache License 2.0',
      packages=find_packages(exclude=['ez_setup']),
      namespace_packages=['openprocurement', 'openprocurement.tender'],
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      extras_require={'test': test_requires, 'docs': docs_requires,
                      'databridge': databridge_requires, 'api': api_requires},
      test_suite="openprocurement.tender.competitivedialogue.tests.main.suite",
      entry_points=entry_points)
<commit_msg>prepare 1.0.15<commit_after>from setuptools import setup, find_packages
import os

version = '1.0.15'

requires = [
    'setuptools'
]

api_requires = requires + [
    'openprocurement.api>=2.3',
    'openprocurement.tender.openua',
    'openprocurement.tender.openeu'
]

test_requires = api_requires + requires + [
    'webtest',
    'python-coveralls',
]

docs_requires = requires + [
    'sphinxcontrib-httpdomain',
]

entry_points = {
    'console_scripts': [
        'competitive_dialogue_data_bridge = openprocurement.tender.competitivedialogue.databridge:main'
    ],
    'openprocurement.api.plugins': [
        'competitivedialogue = openprocurement.tender.competitivedialogue:includeme'
    ]
}

databridge_requires = requires + [
    'PyYAML',
    'gevent',
    'LazyDB',
    'ExtendedJournalHandler',
    'openprocurement_client>=1.0b2'
]

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

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

setup(name='openprocurement.tender.competitivedialogue',
      version=version,
      description="",
      long_description=README,
      # Get more strings from
      # http://pypi.python.org/pypi?:action=list_classifiers
      classifiers=[
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        ],
      keywords="web services",
      author='Quintagroup, Ltd.',
      author_email='info@quintagroup.com',
      url='https://github.com/openprocurement/openprocurement.tender.competitivedialogue',
      license='Apache License 2.0',
      packages=find_packages(exclude=['ez_setup']),
      namespace_packages=['openprocurement', 'openprocurement.tender'],
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      extras_require={'test': test_requires, 'docs': docs_requires,
                      'databridge': databridge_requires, 'api': api_requires},
      test_suite="openprocurement.tender.competitivedialogue.tests.main.suite",
      entry_points=entry_points)
<|endoftext|>


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

import os
import subprocess

from setuptools import find_packages, setup

def create_mo_files():
    data_files = []
    localedir = 'lektor_creative_commons/locales'
    po_dirs = [
        localedir + '/' + l + '/LC_MESSAGES/'
        for l in next(os.walk(localedir))[1]
    ]

    for d in po_dirs:
        mo_files = []
        po_files = [
            f for f in next(os.walk(d))[2] if os.path.splitext(f)[1] == '.po'
        ]

        for po_file in po_files:
            filename, extension = os.path.splitext(po_file)
            mo_file = filename + '.mo'
            msgfmt_cmd = 'msgfmt {} -o {}'.format(d + po_file, d + mo_file)
            subprocess.call(msgfmt_cmd, shell=True)
            mo_files.append(d + mo_file)

        data_files.append((d, mo_files))

    return data_files

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

setup(
    name='lektor-creative-commons',
    description='Lektor plugin to add Creative Commons license to your pages',
    long_description=README,
    long_description_content_type='text/markdown',
    version='0.5.3',
    url='https://github.com/humrochagf/lektor-creative-commons',
    project_urls={
        'Documentation': (
            'https://github.com/humrochagf/lektor-creative-commons/'
            'blob/master/README.md'),
        'Source': 'https://github.com/humrochagf/lektor-creative-commons/',
        'Tracker': (
            'https://github.com/humrochagf/lektor-creative-commons/issues'),
    },
    author='Humberto Rocha',
    author_email='humrochagf@gmail.com',
    license='MIT',
    py_modules=['lektor_creative_commons'],
    entry_points={
        'lektor.plugins': [
            'creative-commons=lektor_creative_commons:CreativeCommonsPlugin',
        ]
    },
    packages=find_packages(),
    include_package_data=True,
    package_data={
        'lektor_creative_commons': ['assets/*/*/*.png']
    },
    zip_safe=False,
    data_files=create_mo_files(),
    classifiers=[
        'Framework :: Lektor',
        'Environment :: Plugins',
    ],
)
<commit_msg>Version bump<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import subprocess

from setuptools import find_packages, setup

def create_mo_files():
    data_files = []
    localedir = 'lektor_creative_commons/locales'
    po_dirs = [
        localedir + '/' + l + '/LC_MESSAGES/'
        for l in next(os.walk(localedir))[1]
    ]

    for d in po_dirs:
        mo_files = []
        po_files = [
            f for f in next(os.walk(d))[2] if os.path.splitext(f)[1] == '.po'
        ]

        for po_file in po_files:
            filename, extension = os.path.splitext(po_file)
            mo_file = filename + '.mo'
            msgfmt_cmd = 'msgfmt {} -o {}'.format(d + po_file, d + mo_file)
            subprocess.call(msgfmt_cmd, shell=True)
            mo_files.append(d + mo_file)

        data_files.append((d, mo_files))

    return data_files

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

setup(
    name='lektor-creative-commons',
    description='Lektor plugin to add Creative Commons license to your pages',
    long_description=README,
    long_description_content_type='text/markdown',
    version='0.6.0',
    url='https://github.com/humrochagf/lektor-creative-commons',
    project_urls={
        'Documentation': (
            'https://github.com/humrochagf/lektor-creative-commons/'
            'blob/master/README.md'),
        'Source': 'https://github.com/humrochagf/lektor-creative-commons/',
        'Tracker': (
            'https://github.com/humrochagf/lektor-creative-commons/issues'),
    },
    author='Humberto Rocha',
    author_email='humrochagf@gmail.com',
    license='MIT',
    py_modules=['lektor_creative_commons'],
    entry_points={
        'lektor.plugins': [
            'creative-commons=lektor_creative_commons:CreativeCommonsPlugin',
        ]
    },
    packages=find_packages(),
    include_package_data=True,
    package_data={
        'lektor_creative_commons': ['assets/*/*/*.png']
    },
    zip_safe=False,
    data_files=create_mo_files(),
    classifiers=[
        'Framework :: Lektor',
        'Environment :: Plugins',
    ],
)
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages
from distutils.core import Command
from unittest import TextTestRunner, TestLoader
from glob import glob
from os.path import splitext, basename, join as pjoin, walk

version = '0.2.0'

class TestRunner(Command):
    """run tests with setup.py

    usage: python setup.py test
    """
    user_options = []

    def initialize_options(self):
        self._dir = os.getcwd()

    def finalize_options(self):
        pass

    def run(self):
        '''
        Finds all the tests modules in tests/, and runs them.
        '''
        testfiles = [ ]
        for t in glob(pjoin(self._dir, 'tests', '*.py')):
            if not t.endswith('__init__.py'):
                testfiles.append('.'.join(
                    ['tests', splitext(basename(t))[0]])
                )

        tests = TestLoader().loadTestsFromNames(testfiles)
        t = TextTestRunner(verbosity = 1)
        t.run(tests)

setup(
    name = "github-cli",
    version = version,
    url = 'http://github.com/jsmits/github-cli',
    license = 'BSD',
    description = "A command-line interface to the GitHub Issues API v2.",
    long_description = """`github-cli <http://github.com/jsmits/github-cli/>`_
provides a script called ``ghi``, that can be used to access all of `GitHub
<http://www.github.com/>`_'s documented `Issues API <http://develop.github.com/p/issues.html>`_
(v2) functionality from your command-line""",
    author = 'Sander Smits',
    author_email = 'jhmsmits@gmail.com',
    packages = find_packages('src'),
    package_dir = {'': 'src'},
    install_requires = ['setuptools', 'simplejson'],
    entry_points="""
    [console_scripts]
    ghi = github.issues:main
    """,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Software Development :: Bug Tracking',
    ],
    cmdclass = {'test': TestRunner},
)

<commit_msg>long_description is added dynamically<commit_after>import os
from setuptools import setup, find_packages
from distutils.core import Command
from unittest import TextTestRunner, TestLoader
from glob import glob
from os.path import splitext, basename, join as pjoin, walk

version = '0.2.0'

class TestRunner(Command):
    """run tests with setup.py

    usage: python setup.py test
    """
    user_options = []

    def initialize_options(self):
        self._dir = os.getcwd()

    def finalize_options(self):
        pass

    def run(self):
        '''
        Finds all the tests modules in tests/, and runs them.
        '''
        testfiles = [ ]
        for t in glob(pjoin(self._dir, 'tests', '*.py')):
            if not t.endswith('__init__.py'):
                testfiles.append('.'.join(
                    ['tests', splitext(basename(t))[0]])
                )

        tests = TestLoader().loadTestsFromNames(testfiles)
        t = TextTestRunner(verbosity = 1)
        t.run(tests)

cur_dir = os.path.dirname(__file__)
readme = open(os.path.join(cur_dir, 'README.rst')).read()
long_description = readme

setup(
    name = "github-cli",
    version = version,
    url = 'http://github.com/jsmits/github-cli',
    license = 'BSD',
    description = "A command-line interface to the GitHub Issues API v2.",
    long_description = long_description,
    author = 'Sander Smits',
    author_email = 'jhmsmits@gmail.com',
    packages = find_packages('src'),
    package_dir = {'': 'src'},
    install_requires = ['setuptools', 'simplejson'],
    entry_points="""
    [console_scripts]
    ghi = github.issues:main
    """,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Software Development :: Bug Tracking',
    ],
    cmdclass = {'test': TestRunner},
)

<|endoftext|>


<commit_before>from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

import collections
import errno
import os
import sys
import zipfile

SETUP_DIR = os.path.abspath(os.path.dirname(__file__))
VERSION = '0.1.0'

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

    def initialize_options(self):
        super(PyTest, self).initialize_options()
        self.pytest_args = ['--pep8']

    def finalize_options(self):
        super(PyTest, self).finalize_options()
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        fetch_test_data()

        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)

class ExtraRequires(collections.Mapping):
    suffix = '-requirements.txt'

    def __getitem__(self, key):
        return get_requires(key + self.suffix)

    def __iter__(self):
        for filename in os.listdir(SETUP_DIR):
            if (os.path.isfile(filename) and filename.endswith(self.suffix)):
                yield filename[:-len(self.suffix)]

    def __len__(self):
        return sum(1 for _ in self)

def get_requires(filename='requirements.txt'):
    with open(os.path.join(SETUP_DIR, filename), 'r') as f:
        for line in f:
            line = line.strip()
            if line.startswith('#') or not line:
                continue
            elif '#' in line:
                yield line.split('#', 1)[0]
            else:
                yield line

def fetch_test_data():
    """
    Fetches test data if it's missing.
    """

    data_dir = os.path.join(SETUP_DIR, 'tests', 'data')

    # if tests/data exists, is empty, and .gitmodules exists, run the
    # appropriate git-submodule(1) command
    if (os.path.isdir(data_dir) and not os.listdir(data_dir) and
            os.path.isfile(os.path.join(SETUP_DIR, '.gitmodules'))):
        import subprocess
        subprocess.call(['git', 'submodule', 'update',
                         '--init', '--recursive'])
    # if tests/data either doesn't exist or is empty, download the
    # busbus-test-data zip from GitHub and unpack it
    else:
        try:
            os.mkdir(data_dir)
        except OSError as exc:
            if exc.errno != errno.EEXIST:
                raise

        if not os.listdir(data_dir):
            # at this point requests and six are already installed
            import requests
            import six

            resp = requests.get('https://github.com/spaceboats/busbus-test-'
                                'data/archive/v{0}.zip'.format(VERSION))
            with zipfile.ZipFile(six.BytesIO(resp.content)) as z:
                prefix = 'busbus-test-data-{0}/'.format(VERSION)
                for filename in z.namelist():
                    if filename == prefix or not filename.startswith(prefix):
                        continue
                    filename = filename[len(prefix):]
                    if filename.endswith('/'):
                        os.mkdir(os.path.join(data_dir, filename))
                    else:
                        with open(os.path.join(data_dir, filename), 'wb') as f:
                            f.write(z.read(prefix + filename))

setup(
    name='busbus',
    version=VERSION,
    license='MIT',
    url='https://github.com/spaceboats/busbus',
    packages=find_packages(),
    package_data={
        'busbus.provider': ['*.sql'],
    },
    install_requires=list(get_requires()),
    tests_require=list(get_requires('dev-requirements.txt')),
    extras_require=ExtraRequires(),
    cmdclass={
        'test': PyTest,
    },
)
<commit_msg>Revert "super is super!"<commit_after>from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

import collections
import errno
import os
import sys
import zipfile

SETUP_DIR = os.path.abspath(os.path.dirname(__file__))
VERSION = '0.1.0'

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

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

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

    def run_tests(self):
        fetch_test_data()

        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)

class ExtraRequires(collections.Mapping):
    suffix = '-requirements.txt'

    def __getitem__(self, key):
        return get_requires(key + self.suffix)

    def __iter__(self):
        for filename in os.listdir(SETUP_DIR):
            if (os.path.isfile(filename) and filename.endswith(self.suffix)):
                yield filename[:-len(self.suffix)]

    def __len__(self):
        return sum(1 for _ in self)

def get_requires(filename='requirements.txt'):
    with open(os.path.join(SETUP_DIR, filename), 'r') as f:
        for line in f:
            line = line.strip()
            if line.startswith('#') or not line:
                continue
            elif '#' in line:
                yield line.split('#', 1)[0]
            else:
                yield line

def fetch_test_data():
    """
    Fetches test data if it's missing.
    """

    data_dir = os.path.join(SETUP_DIR, 'tests', 'data')

    # if tests/data exists, is empty, and .gitmodules exists, run the
    # appropriate git-submodule(1) command
    if (os.path.isdir(data_dir) and not os.listdir(data_dir) and
            os.path.isfile(os.path.join(SETUP_DIR, '.gitmodules'))):
        import subprocess
        subprocess.call(['git', 'submodule', 'update',
                         '--init', '--recursive'])
    # if tests/data either doesn't exist or is empty, download the
    # busbus-test-data zip from GitHub and unpack it
    else:
        try:
            os.mkdir(data_dir)
        except OSError as exc:
            if exc.errno != errno.EEXIST:
                raise

        if not os.listdir(data_dir):
            # at this point requests and six are already installed
            import requests
            import six

            resp = requests.get('https://github.com/spaceboats/busbus-test-'
                                'data/archive/v{0}.zip'.format(VERSION))
            with zipfile.ZipFile(six.BytesIO(resp.content)) as z:
                prefix = 'busbus-test-data-{0}/'.format(VERSION)
                for filename in z.namelist():
                    if filename == prefix or not filename.startswith(prefix):
                        continue
                    filename = filename[len(prefix):]
                    if filename.endswith('/'):
                        os.mkdir(os.path.join(data_dir, filename))
                    else:
                        with open(os.path.join(data_dir, filename), 'wb') as f:
                            f.write(z.read(prefix + filename))

setup(
    name='busbus',
    version=VERSION,
    license='MIT',
    url='https://github.com/spaceboats/busbus',
    packages=find_packages(),
    package_data={
        'busbus.provider': ['*.sql'],
    },
    install_requires=list(get_requires()),
    tests_require=list(get_requires('dev-requirements.txt')),
    extras_require=ExtraRequires(),
    cmdclass={
        'test': PyTest,
    },
)
<|endoftext|>


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

import glob
import os
import sys
import re
import subprocess

import unittest

from setuptools import find_packages, setup, Extension
from Cython.Build import cythonize

from setuptools.command.test import test as TestCommand

from tests.mpirunner import MPITestRunner

def get_version():
    ver = 'unknown'
    if os.path.isfile("toast/_version.py"):
        f = open("toast/_version.py", "r")
        for line in f.readlines():
            mo = re.match("__version__ = '(.*)'", line)
            if mo:
                ver = mo.group(1)
        f.close()
    return ver

current_version = get_version()

# extensions to build

extensions = cythonize ( [] )

# scripts to install

scripts = glob.glob('pipelines/*.py')

# customize the test command, to use MPI runner

class MPITestCommand(TestCommand):

    def __init__(self, *args, **kwargs):
        super(MPITestCommand, self).__init__(*args, **kwargs)

    def initialize_options(self):
        TestCommand.initialize_options(self)

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

    def run(self):
        loader = unittest.TestLoader()
        runner = MPITestRunner(verbosity=2)
        suite = loader.discover('tests', pattern='test_*.py', top_level_dir='.')
        runner.run(suite)
        suite = loader.discover('tests/exp/planck', pattern='test_*.py', top_level_dir='.')
        runner.run(suite)

# set it all up

setup (
    name = 'toast',
    provides = 'toast',
    version = current_version,
    description = 'Time Ordered Astrophysics Scalable Tools',
    author = 'Theodore Kisner',
    author_email = 'mail@theodorekisner.com',
    url = 'https://github.com/tskisner/pytoast',
    ext_modules = extensions,
    packages = [ 'toast', 'toast.tod', 'toast.map', 'toast.exp', 'toast.exp.planck' ],
    scripts = scripts,
    license = 'BSD',
    requires = ['Python (>3.4.0)', ],
    cmdclass={'test': MPITestCommand}
)

# extra cleanup of cython generated sources

if "clean" in sys.argv:
    print("Deleting cython files...")
    # Just in case the build directory was created by accident,
    # note that shell=True should be OK here because the command is constant.
    subprocess.Popen("rm -rf build", shell=True, executable="/bin/bash")
    subprocess.Popen("rm -rf pympit/*.c", shell=True, executable="/bin/bash")
    subprocess.Popen("rm -rf pympit/*.so", shell=True, executable="/bin/bash")
    subprocess.Popen("rm -rf pympit/*.pyc", shell=True, executable="/bin/bash")

<commit_msg>Fix package path to mpitestrunner<commit_after>#!/usr/bin/env python

import glob
import os
import sys
import re
import subprocess

import unittest

from setuptools import find_packages, setup, Extension
from Cython.Build import cythonize

from setuptools.command.test import test as TestCommand

from toast.mpirunner import MPITestRunner

def get_version():
    ver = 'unknown'
    if os.path.isfile("toast/_version.py"):
        f = open("toast/_version.py", "r")
        for line in f.readlines():
            mo = re.match("__version__ = '(.*)'", line)
            if mo:
                ver = mo.group(1)
        f.close()
    return ver

current_version = get_version()

# extensions to build

extensions = cythonize ( [] )

# scripts to install

scripts = glob.glob('pipelines/*.py')

# customize the test command, to use MPI runner

class MPITestCommand(TestCommand):

    def __init__(self, *args, **kwargs):
        super(MPITestCommand, self).__init__(*args, **kwargs)

    def initialize_options(self):
        TestCommand.initialize_options(self)

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

    def run(self):
        loader = unittest.TestLoader()
        runner = MPITestRunner(verbosity=2)
        suite = loader.discover('tests', pattern='test_*.py', top_level_dir='.')
        runner.run(suite)
        suite = loader.discover('tests/exp/planck', pattern='test_*.py', top_level_dir='.')
        runner.run(suite)

# set it all up

setup (
    name = 'toast',
    provides = 'toast',
    version = current_version,
    description = 'Time Ordered Astrophysics Scalable Tools',
    author = 'Theodore Kisner',
    author_email = 'mail@theodorekisner.com',
    url = 'https://github.com/tskisner/pytoast',
    ext_modules = extensions,
    packages = [ 'toast', 'toast.tod', 'toast.map', 'toast.exp', 'toast.exp.planck' ],
    scripts = scripts,
    license = 'BSD',
    requires = ['Python (>3.4.0)', ],
    cmdclass={'test': MPITestCommand}
)

# extra cleanup of cython generated sources

if "clean" in sys.argv:
    print("Deleting cython files...")
    # Just in case the build directory was created by accident,
    # note that shell=True should be OK here because the command is constant.
    subprocess.Popen("rm -rf build", shell=True, executable="/bin/bash")
    subprocess.Popen("rm -rf pympit/*.c", shell=True, executable="/bin/bash")
    subprocess.Popen("rm -rf pympit/*.so", shell=True, executable="/bin/bash")
    subprocess.Popen("rm -rf pympit/*.pyc", shell=True, executable="/bin/bash")

<|endoftext|>


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

import os
import sys
import fnmatch

## prepare to run PyTest as a command
from distutils.core import Command

## explain this...
#from distribute_setup import use_setuptools
#use_setuptools()

from setuptools import setup, find_packages

PROJECT = 'kba.pipeline'
VERSION = '0.1.4'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
DESC = 'Tools for building streamcorpus objects for particular collections of text used in TREC KBA.'

def read_file(file_name):
    file_path = os.path.join(
        os.path.dirname(__file__),
        file_name
        )
    return open(file_path).read()

def recursive_glob(treeroot, pattern):
    results = []
    for base, dirs, files in os.walk(treeroot):
      goodfiles = fnmatch.filter(files, pattern)
      results.extend(os.path.join(base, f) for f in goodfiles)
    return results

class PyTest(Command):
    '''run py.test'''

    description = 'runs py.test to execute all tests'

    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import subprocess
        errno = subprocess.call([sys.executable, 'runtests.py'])
        raise SystemExit(errno)

setup(
    name=PROJECT,
    version=VERSION,
    description=DESC,
    #long_description=read_file('README.md'),
    long_description="",
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    url='',
    packages = find_packages('src'),
    package_dir = {'': 'src'},
    cmdclass = {'test': PyTest},
    # We can select proper classifiers later
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Topic :: Utilities',
        'License :: MIT',  ## MIT/X11 license http://opensource.org/licenses/MIT
    ],
    install_requires=[
        'thrift',
        'gevent',
        'protobuf',
        'requests',
        'streamcorpus>=0.2.11',
        'pyyaml',
        'nltk',
        'lxml',
        'BeautifulSoup',
        'boto',
        'kazoo',
        #'marisa-trie',
        #'jellyfish',
        'nilsimsa>=0.2',
        'chromium_compact_language_detector',
    ],
    # include_package_data = True,
    package_data = {
        # If any package contains *.txt or *.rst files, include them:
        # '': ['*.txt', '*.rst'],
        # And include any files found in the 'data' package:
        # '': recursive_glob('src/data/', '*')
        '': recursive_glob('data/', '*')
    }
)
<commit_msg>Bump the version number<commit_after>#!/usr/bin/env python

import os
import sys
import fnmatch

## prepare to run PyTest as a command
from distutils.core import Command

## explain this...
#from distribute_setup import use_setuptools
#use_setuptools()

from setuptools import setup, find_packages

PROJECT = 'kba.pipeline'
VERSION = '0.1.5'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
DESC = 'Tools for building streamcorpus objects for particular collections of text used in TREC KBA.'

def read_file(file_name):
    file_path = os.path.join(
        os.path.dirname(__file__),
        file_name
        )
    return open(file_path).read()

def recursive_glob(treeroot, pattern):
    results = []
    for base, dirs, files in os.walk(treeroot):
      goodfiles = fnmatch.filter(files, pattern)
      results.extend(os.path.join(base, f) for f in goodfiles)
    return results

class PyTest(Command):
    '''run py.test'''

    description = 'runs py.test to execute all tests'

    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import subprocess
        errno = subprocess.call([sys.executable, 'runtests.py'])
        raise SystemExit(errno)

setup(
    name=PROJECT,
    version=VERSION,
    description=DESC,
    #long_description=read_file('README.md'),
    long_description="",
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    url='',
    packages = find_packages('src'),
    package_dir = {'': 'src'},
    cmdclass = {'test': PyTest},
    # We can select proper classifiers later
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Topic :: Utilities',
        'License :: MIT',  ## MIT/X11 license http://opensource.org/licenses/MIT
    ],
    install_requires=[
        'thrift',
        'gevent',
        'protobuf',
        'requests',
        'streamcorpus>=0.2.11',
        'pyyaml',
        'nltk',
        'lxml',
        'BeautifulSoup',
        'boto',
        'kazoo',
        #'marisa-trie',
        #'jellyfish',
        'nilsimsa>=0.2',
        'chromium_compact_language_detector',
    ],
    # include_package_data = True,
    package_data = {
        # If any package contains *.txt or *.rst files, include them:
        # '': ['*.txt', '*.rst'],
        # And include any files found in the 'data' package:
        # '': recursive_glob('src/data/', '*')
        '': recursive_glob('data/', '*')
    }
)
<|endoftext|>


<commit_before># encoding: utf-8

"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""

from __future__ import unicode_literals

import io
import os.path
import sys

import setuptools

MISC_DIR = "misc"
REQUIREMENT_DIR = "requirements"

with io.open("README.rst", encoding="utf8") as f:
    long_description = f.read()

with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f:
    summary = f.read()

with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f:
    install_requires = [line.strip() for line in f if line.strip()]

with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
    tests_require = [line.strip() for line in f if line.strip()]

needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []

author = "Tsuyoshi Hombashi"
email = "gogogo.vm@gmail.com"
project_name = "DataProperty"

setuptools.setup(
    name=project_name,
    version="0.18.0",
    url="https://github.com/thombashi/" + project_name,
    bugtrack_url="https://github.com/thombashi/{:s}/issues".format(
        project_name),

    author=author,
    author_email=email,
    description=summary,
    include_package_data=True,
    install_requires=install_requires,
    keywords=["data", "property"],
    license="MIT License",
    long_description=long_description,
    maintainer=author,
    maintainer_email=email,
    packages=setuptools.find_packages(exclude=["test*"]),
    setup_requires=[] + pytest_runner,
    tests_require=tests_require,

    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Topic :: Software Development :: Libraries",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<commit_msg>Bump version to 0.18.1<commit_after># encoding: utf-8

"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""

from __future__ import unicode_literals

import io
import os.path
import sys

import setuptools

MISC_DIR = "misc"
REQUIREMENT_DIR = "requirements"

with io.open("README.rst", encoding="utf8") as f:
    long_description = f.read()

with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f:
    summary = f.read()

with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f:
    install_requires = [line.strip() for line in f if line.strip()]

with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
    tests_require = [line.strip() for line in f if line.strip()]

needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []

author = "Tsuyoshi Hombashi"
email = "gogogo.vm@gmail.com"
project_name = "DataProperty"

setuptools.setup(
    name=project_name,
    version="0.18.1",
    url="https://github.com/thombashi/" + project_name,
    bugtrack_url="https://github.com/thombashi/{:s}/issues".format(
        project_name),

    author=author,
    author_email=email,
    description=summary,
    include_package_data=True,
    install_requires=install_requires,
    keywords=["data", "property"],
    license="MIT License",
    long_description=long_description,
    maintainer=author,
    maintainer_email=email,
    packages=setuptools.find_packages(exclude=["test*"]),
    setup_requires=[] + pytest_runner,
    tests_require=tests_require,

    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Topic :: Software Development :: Libraries",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name="robosuite",
    packages=[
        package for package in find_packages() if package.startswith("robosuite")
    ],
    install_requires=[
        "numpy>=1.13.3",
        "mujoco-py<1.50.2,>=1.50.1",
    ],
    eager_resources=['*'],
    include_package_data=True,
    python_requires='>=3',
    description="Surreal Robotics Suite: Standardized and Accessible Robot Manipulation Benchmark in Physics Simulation",
    author="Yuke Zhu, Jiren Zhu, Ajay Mandlekar, Joan Creus-Costa, Anchit Gupta",
    url="https://github.com/StanfordVL/robosuite",
    author_email="yukez@cs.stanford.edu",
    version="0.1.0",
)
<commit_msg>update version for mujoco 1.5 release<commit_after>from setuptools import setup, find_packages

setup(
    name="robosuite",
    packages=[
        package for package in find_packages() if package.startswith("robosuite")
    ],
    install_requires=[
        "numpy>=1.13.3",
        "mujoco-py<1.50.2,>=1.50.1",
    ],
    eager_resources=['*'],
    include_package_data=True,
    python_requires='>=3',
    description="Surreal Robotics Suite: Standardized and Accessible Robot Manipulation Benchmark in Physics Simulation",
    author="Yuke Zhu, Jiren Zhu, Ajay Mandlekar, Joan Creus-Costa, Anchit Gupta",
    url="https://github.com/StanfordVL/robosuite",
    author_email="yukez@cs.stanford.edu",
    version="0.2.0",
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
    name='django-comuni-italiani',
    packages=find_packages(),
    # package_data={'': ['']},
    include_package_data=True,
    version='1.0.0',
    description='A simple django (>= 1.7) app for Italian cities and regions',
    author='Andrea Briganti',
    author_email='kbytesys@gmail.com',
    url='https://github.com/kbytesys/django_comuni_italiani',
    download_url='https://github.com/kbytesys/django_comuni_italiani/tarball/v1.0.0',
    keywords=['django', 'comuni', 'regioni', 'province'],
    license='GNU LGPL v2',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)',
        'Natural Language :: Italian',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Framework :: Django',
        'Framework :: Django :: 1.7',
        'Framework :: Django :: 1.8',
        'Operating System :: OS Independent',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
)

<commit_msg>dipendenze pypi<commit_after># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
    name='django-comuni-italiani',
    packages=find_packages(),
    # package_data={'': ['']},
    include_package_data=True,
    version='1.0.1',
    install_requires=[
        'Django>=1.7',
    ],
    description='A simple django (>= 1.7) app for Italian cities and regions',
    author='Andrea Briganti',
    author_email='kbytesys@gmail.com',
    url='https://github.com/kbytesys/django_comuni_italiani',
    download_url='https://github.com/kbytesys/django_comuni_italiani/tarball/v1.0.1',
    keywords=['django', 'comuni', 'regioni', 'province'],
    license='GNU LGPL v2',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)',
        'Natural Language :: Italian',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Framework :: Django',
        'Framework :: Django :: 1.7',
        'Framework :: Django :: 1.8',
        'Operating System :: OS Independent',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
)

<|endoftext|>


<commit_before>"""Packaging information."""

from subprocess import call
from sys import exit

from setuptools import Command, setup

from brute import (
    __doc__ as description,
    __version__ as version,
)

class TestCommand(Command):

    description = 'run all tests'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        """Run the test suite."""
        exit(call(['py.test', '--cov', 'brute']))

setup(

    # Basic package information:
    name = 'brute',
    version = version,
    py_modules = ['brute'],

    # Packaging options:
    zip_safe = False,
    include_package_data = True,

    # Package dependencies:
    install_requires = [],

    # Test harness:
    cmdclass = {
        'test': TestCommand,
    },

    # Metadata for PyPI:
    author = 'Randall Degges',
    author_email = 'r@rdegges.com',
    license = 'UNLICENSE',
    url = 'https://github.com/rdegges/brute',
    keywords = 'python security bruteforce hash hack',
    description = 'Simple brute forcing in Python.',
    long_description = description,
    classifiers = [
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: Public Domain',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: Implementation',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Security',
        'Topic :: Security :: Cryptography',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],

)
<commit_msg>Updating classifiers.<commit_after>"""Packaging information."""

from subprocess import call
from sys import exit

from setuptools import Command, setup

from brute import (
    __doc__ as description,
    __version__ as version,
)

class TestCommand(Command):

    description = 'run all tests'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        """Run the test suite."""
        exit(call(['py.test', '--cov', 'brute']))

setup(

    # Basic package information:
    name = 'brute',
    version = version,
    py_modules = ['brute'],

    # Packaging options:
    zip_safe = False,
    include_package_data = True,

    # Package dependencies:
    install_requires = [],

    # Test harness:
    cmdclass = {
        'test': TestCommand,
    },

    # Metadata for PyPI:
    author = 'Randall Degges',
    author_email = 'r@rdegges.com',
    license = 'UNLICENSE',
    url = 'https://github.com/rdegges/brute',
    keywords = 'python security bruteforce hash hack',
    description = 'Simple brute forcing in Python.',
    long_description = description,
    classifiers = [
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: Public Domain',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: Implementation',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Security',
        'Topic :: Security :: Cryptography',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],

)
<|endoftext|>


<commit_before>from setuptools import setup
import os

# include data files
pydis_data = []
for dirpath, dirnames, files in os.walk('pydis/resources'):
    for f in files:
        if f.endswith('.dat'):
            pydis_data.append(os.path.join(dirpath[6:], f))

setup(
    name = 'pydis',
    version = '1.0',
    description = 'A simple longslit spectroscopy pipeline in Python',
    author = 'James Davenport',
    author_email = 'jradavenport@gmail.com',
    license = 'MIT',
    url = 'https://github.com/jradavenport/pydis',
    packages = ['pydis'],
    package_data = {
	'': pydis_data,
    },
    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is the project?
        'Development Status :: 3 - Alpha',
        # Indicate who your project is intended for
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Astronomy',
        # should match "license" above
        'License :: OSI Approved :: MIT License',
        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
)
<commit_msg>python 3 hasnt been tested yet<commit_after>from setuptools import setup
import os

# include data files
pydis_data = []
for dirpath, dirnames, files in os.walk('pydis/resources'):
    for f in files:
        if f.endswith('.dat'):
            pydis_data.append(os.path.join(dirpath[6:], f))

setup(
    name = 'pydis',
    version = '1.1',
    description = 'A simple longslit spectroscopy pipeline in Python',
    author = 'James Davenport',
    author_email = 'jradavenport@gmail.com',
    license = 'MIT',
    url = 'https://github.com/jradavenport/pydis',
    packages = ['pydis'],
    package_data = {
	'': pydis_data,
    },
    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is the project?
        'Development Status :: 3 - Alpha',
        # Indicate who your project is intended for
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Astronomy',
        # should match "license" above
        'License :: OSI Approved :: MIT License',
        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        #'Programming Language :: Python :: 3', # Py3 hasn't been tested yet
        #'Programming Language :: Python :: 3.3',
        #'Programming Language :: Python :: 3.4',
        #'Programming Language :: Python :: 3.5',
    ],
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='auth',
    version='1.0.0',
    author='Kristoffer Snabb',
    url='https://github.com/geonition/django_auth',
    packages=['auth'],
)<commit_msg>setup modified to include the templates<commit_after>from setuptools import setup
from setuptools import find_packages

setup(
    name='auth',
    version='1.0.0',
    author='Kristoffer Snabb',
    url='https://github.com/geonition/django_auth',
    packages=find_packages(),
    include_package_data=True,
    package_data = {
        "auth": [
            "templates/*.js",
            "templates/email_templates/*.txt"
        ],
    },
    zip_safe=False,
    install_requires=['django']
)<|endoftext|>


<commit_before>"""
The setup package to install SeleniumBase dependencies and plugins
(Uses selenium 3.x and is compatible with Python 2.7+ and Python 3.5+)
"""

from setuptools import setup, find_packages  # noqa
import os
import sys

this_directory = os.path.abspath(os.path.dirname(__file__))
long_description = None
try:
    with open(os.path.join(this_directory, 'README.md'), 'rb') as f:
        long_description = f.read().decode('utf-8')
except IOError:
    long_description = 'Reliable Browser Automation & Testing Framework'

if sys.argv[-1] == 'publish':
    reply = None
    input_method = input
    if not sys.version_info[0] >= 3:
        input_method = raw_input  # noqa
    reply = str(input_method(
        '>>> Confirm release PUBLISH to PyPI? (yes/no): ')).lower().strip()
    if reply == 'yes':
        print("\n*** Checking code health with flake8:\n")
        flake8_status = os.system("flake8 --exclude=temp")
        if flake8_status != 0:
            print("\nWARNING! Fix flake8 issues before publishing to PyPI!\n")
            sys.exit()
        else:
            print("*** No flake8 issues detected. Continuing...")
        print("\n*** Rebuilding distribution packages: ***\n")
        os.system('rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl')
        os.system('python setup.py sdist bdist_wheel')  # Create new tar/wheel
        print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
        os.system("python -m pip install 'twine>=1.15.0'")
        print("\n*** Publishing The Release to PyPI: ***\n")
        os.system('python -m twine upload dist/*')  # Requires ~/.pypirc Keys
        print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n")
    else:
        print("\n>>> The Release was NOT PUBLISHED to PyPI! <<<\n")
    sys.exit()

setup(
    name='seleniumbase',
    version='1.34.10',
    description='Fast, Easy, and Reliable Browser Automation & Testing.',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/seleniumbase/SeleniumBase',
    platforms=["Windows", "Linux", "Unix", "Mac OS-X"],
    author='Michael Mintz',
    author_email='mdmintz@gmail.com',
    maintainer='Michael Mintz',
    license="MIT",
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Development Status :: 5 - Production/Stable",
        "Topic :: Internet",
        "Topic :: Scientific/Engineering",
        "Topic :: Software Development",
        "Topic :: Software Development :: Quality Assurance",
        "Topic :: Software Development :: Testing",
        "Topic :: Software Development :: Testing :: Acceptance",
        "Topic :: Software Development :: Testing :: Traffic Generation",
        "Topic :: Utilities",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: Unix",
        "Operating System :: MacOS",
        "Framework :: Pytest",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ],
    install_requires=[
        'pip>=19.3.1',  # >= 19.3.1 required for Python 3.8+
        'setuptools',
        'setuptools-scm',
        'wheel',
        'six',
        'nose',
        'ipdb',
        'idna==2.8',  # Must stay in sync with "requests"
        'chardet==3.0.4',  # Must stay in sync with "requests"
        'urllib3==1.25.7',  # Must stay in sync with "requests"
        'requests==2.22.0',
        'selenium==3.141.0',
        'pluggy>=0.13.1',
        'attrs>=19.3.0',
        'pytest>=4.6.8;python_version<"3"',  # For Python 2 compatibility
        'pytest>=5.3.2;python_version>="3"',
        'pytest-cov>=2.8.1',
        'pytest-forked>=1.1.3',
        'pytest-html==1.22.1;python_version<"3.6"',
        'pytest-html==2.0.1;python_version>="3.6"',
        'pytest-metadata>=1.8.0',
        'pytest-ordering>=0.6',
        'pytest-rerunfailures>=8.0',
        'pytest-timeout>=1.3.3',
        'pytest-xdist>=1.31.0',
        'parameterized>=0.7.1',
        'soupsieve==1.9.5',
        'beautifulsoup4==4.8.2',
        'atomicwrites==1.3.0',
        'portalocker==1.5.2',
        'cryptography==2.8',
        'asn1crypto==1.2.0',
        'pyopenssl==19.1.0',
        'pygments>=2.5.2',
        'colorama==0.4.3',
        'coverage>=5.0.1',
        'pymysql==0.9.3',
        'pyotp==2.3.0',
        'boto==2.49.0',
        'cffi>=1.13.2',
        'tqdm>=4.41.1',
        'flake8==3.7.9',
        'certifi>=2019.11.28',
        'pdfminer.six==20191110',
    ],
    packages=[
        'seleniumbase',
        'seleniumbase.common',
        'seleniumbase.config',
        'seleniumbase.console_scripts',
        'seleniumbase.core',
        'seleniumbase.drivers',
        'seleniumbase.extensions',
        'seleniumbase.fixtures',
        'seleniumbase.masterqa',
        'seleniumbase.plugins',
        'seleniumbase.utilities',
        'seleniumbase.utilities.selenium_grid',
        'seleniumbase.utilities.selenium_ide',
        'seleniumbase.virtual_display',
    ],
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'seleniumbase = seleniumbase.console_scripts.run:main',
        ],
        'nose.plugins': [
            'base_plugin = seleniumbase.plugins.base_plugin:Base',
            'selenium = seleniumbase.plugins.selenium_plugin:SeleniumBrowser',
            'page_source = seleniumbase.plugins.page_source:PageSource',
            'screen_shots = seleniumbase.plugins.screen_shots:ScreenShots',
            'test_info = seleniumbase.plugins.basic_test_info:BasicTestInfo',
            ('db_reporting = '
             'seleniumbase.plugins.db_reporting_plugin:DBReporting'),
            's3_logging = seleniumbase.plugins.s3_logging_plugin:S3Logging',
        ],
        'pytest11': ['seleniumbase = seleniumbase.plugins.pytest_plugin']
    }
)

# print(os.system("cat seleniumbase.egg-info/PKG-INFO"))
print("\n*** SeleniumBase Installation Complete! ***\n")
<commit_msg>Version 1.34.11<commit_after>"""
The setup package to install SeleniumBase dependencies and plugins
(Uses selenium 3.x and is compatible with Python 2.7+ and Python 3.5+)
"""

from setuptools import setup, find_packages  # noqa
import os
import sys

this_directory = os.path.abspath(os.path.dirname(__file__))
long_description = None
try:
    with open(os.path.join(this_directory, 'README.md'), 'rb') as f:
        long_description = f.read().decode('utf-8')
except IOError:
    long_description = 'Reliable Browser Automation & Testing Framework'

if sys.argv[-1] == 'publish':
    reply = None
    input_method = input
    if not sys.version_info[0] >= 3:
        input_method = raw_input  # noqa
    reply = str(input_method(
        '>>> Confirm release PUBLISH to PyPI? (yes/no): ')).lower().strip()
    if reply == 'yes':
        print("\n*** Checking code health with flake8:\n")
        flake8_status = os.system("flake8 --exclude=temp")
        if flake8_status != 0:
            print("\nWARNING! Fix flake8 issues before publishing to PyPI!\n")
            sys.exit()
        else:
            print("*** No flake8 issues detected. Continuing...")
        print("\n*** Rebuilding distribution packages: ***\n")
        os.system('rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl')
        os.system('python setup.py sdist bdist_wheel')  # Create new tar/wheel
        print("\n*** Installing twine: *** (Required for PyPI uploads)\n")
        os.system("python -m pip install 'twine>=1.15.0'")
        print("\n*** Publishing The Release to PyPI: ***\n")
        os.system('python -m twine upload dist/*')  # Requires ~/.pypirc Keys
        print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n")
    else:
        print("\n>>> The Release was NOT PUBLISHED to PyPI! <<<\n")
    sys.exit()

setup(
    name='seleniumbase',
    version='1.34.11',
    description='Fast, Easy, and Reliable Browser Automation & Testing.',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/seleniumbase/SeleniumBase',
    platforms=["Windows", "Linux", "Unix", "Mac OS-X"],
    author='Michael Mintz',
    author_email='mdmintz@gmail.com',
    maintainer='Michael Mintz',
    license="MIT",
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Development Status :: 5 - Production/Stable",
        "Topic :: Internet",
        "Topic :: Scientific/Engineering",
        "Topic :: Software Development",
        "Topic :: Software Development :: Quality Assurance",
        "Topic :: Software Development :: Testing",
        "Topic :: Software Development :: Testing :: Acceptance",
        "Topic :: Software Development :: Testing :: Traffic Generation",
        "Topic :: Utilities",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: Unix",
        "Operating System :: MacOS",
        "Framework :: Pytest",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ],
    install_requires=[
        'pip>=19.3.1',  # >= 19.3.1 required for Python 3.8+
        'setuptools',
        'setuptools-scm',
        'wheel',
        'six',
        'nose',
        'ipdb',
        'idna==2.8',  # Must stay in sync with "requests"
        'chardet==3.0.4',  # Must stay in sync with "requests"
        'urllib3==1.25.7',  # Must stay in sync with "requests"
        'requests==2.22.0',
        'selenium==3.141.0',
        'pluggy>=0.13.1',
        'attrs>=19.3.0',
        'pytest>=4.6.8;python_version<"3"',  # For Python 2 compatibility
        'pytest>=5.3.2;python_version>="3"',
        'pytest-cov>=2.8.1',
        'pytest-forked>=1.1.3',
        'pytest-html==1.22.1;python_version<"3.6"',
        'pytest-html==2.0.1;python_version>="3.6"',
        'pytest-metadata>=1.8.0',
        'pytest-ordering>=0.6',
        'pytest-rerunfailures>=8.0',
        'pytest-timeout>=1.3.3',
        'pytest-xdist>=1.31.0',
        'parameterized>=0.7.1',
        'soupsieve==1.9.5',
        'beautifulsoup4==4.8.2',
        'atomicwrites==1.3.0',
        'portalocker==1.5.2',
        'cryptography==2.8',
        'asn1crypto==1.2.0',
        'pyopenssl==19.1.0',
        'pygments>=2.5.2',
        'colorama==0.4.3',
        'coverage>=5.0.1',
        'pymysql==0.9.3',
        'pyotp==2.3.0',
        'boto==2.49.0',
        'cffi>=1.13.2',
        'tqdm>=4.41.1',
        'flake8==3.7.9',
        'certifi>=2019.11.28',
        'pdfminer.six==20191110',
    ],
    packages=[
        'seleniumbase',
        'seleniumbase.common',
        'seleniumbase.config',
        'seleniumbase.console_scripts',
        'seleniumbase.core',
        'seleniumbase.drivers',
        'seleniumbase.extensions',
        'seleniumbase.fixtures',
        'seleniumbase.masterqa',
        'seleniumbase.plugins',
        'seleniumbase.utilities',
        'seleniumbase.utilities.selenium_grid',
        'seleniumbase.utilities.selenium_ide',
        'seleniumbase.virtual_display',
    ],
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'seleniumbase = seleniumbase.console_scripts.run:main',
        ],
        'nose.plugins': [
            'base_plugin = seleniumbase.plugins.base_plugin:Base',
            'selenium = seleniumbase.plugins.selenium_plugin:SeleniumBrowser',
            'page_source = seleniumbase.plugins.page_source:PageSource',
            'screen_shots = seleniumbase.plugins.screen_shots:ScreenShots',
            'test_info = seleniumbase.plugins.basic_test_info:BasicTestInfo',
            ('db_reporting = '
             'seleniumbase.plugins.db_reporting_plugin:DBReporting'),
            's3_logging = seleniumbase.plugins.s3_logging_plugin:S3Logging',
        ],
        'pytest11': ['seleniumbase = seleniumbase.plugins.pytest_plugin']
    }
)

# print(os.system("cat seleniumbase.egg-info/PKG-INFO"))
print("\n*** SeleniumBase Installation Complete! ***\n")
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

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

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

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

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