<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# © 2017-2019 qsuscs, TobiX
# Should still run with Python 2.7...

from __future__ import print_function, unicode_literals

import os
import sys
from glob import glob

os.chdir(os.path.dirname(os.path.abspath(__file__)))
exit = 0

for f in glob('dot.*'):
    dst_home = '~/' + f[3:].replace("--", "\ufffd").replace("-", "/").replace("\ufffd", "-")
    dst = os.path.expanduser(dst_home)
    src = os.path.join(os.getcwd(), f)
    src_rel = os.path.relpath(src, os.path.dirname(dst))

    try:
        os.makedirs(os.path.dirname(dst))
    except OSError:
        pass

    try:
        os.symlink(src_rel, dst)
    except OSError:
        # Broken symbolic links do not "exist"
        if not os.path.exists(dst) or not os.path.samefile(src, dst):
            print('"{}" exists and does not link to "{}".'.format(dst_home, f))
            exit = 1

sys.exit(exit)
<commit_msg>Just overwrite broken links (with warning)<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# © 2017-2019 qsuscs, TobiX
# Should still run with Python 2.7...

from __future__ import print_function, unicode_literals

import os
import sys
from glob import glob

os.chdir(os.path.dirname(os.path.abspath(__file__)))
exit = 0

for f in glob('dot.*'):
    dst_home = '~/' + f[3:].replace("--", "\ufffd").replace("-", "/").replace("\ufffd", "-")
    dst = os.path.expanduser(dst_home)
    src = os.path.join(os.getcwd(), f)
    src_rel = os.path.relpath(src, os.path.dirname(dst))

    try:
        os.makedirs(os.path.dirname(dst))
    except OSError:
        pass

    try:
        os.symlink(src_rel, dst)
    except OSError:
        # Broken symbolic links do not "exist"
        if not os.path.exists(dst):
            print('"{}" is a broken link pointing to "{}", replacing.'.format(
                dst_home, os.readlink(dst)))
            os.remove(dst)
            os.symlink(src_rel, dst)
        elif not os.path.samefile(src, dst):
            print('"{}" exists and does not link to "{}".'.format(dst_home, f))
            exit = 1

sys.exit(exit)
<|endoftext|>


<commit_before>from setuptools import setup

setup(name='pyyaxml',
      version='0.6.6',
      description='Python API to Yandex.XML',
      url='https://github.com/dbf256/py-ya-xml',
      author='Alexey Moskvin',
      author_email='dbf256@gmail.com',
      license='MIT',
      packages=['pyyaxml'],
      install_requires=[
          'six',
      ],
      zip_safe=False)
<commit_msg>Prepare 0.6.7<commit_after>from setuptools import setup

setup(name='pyyaxml',
      version='0.6.7',
      description='Python API to Yandex.XML',
      url='https://github.com/dbf256/py-ya-xml',
      author='Alexey Moskvin',
      author_email='dbf256@gmail.com',
      license='MIT',
      packages=['pyyaxml'],
      install_requires=[
          'six',
      ],
      zip_safe=False)
<|endoftext|>


<commit_before>import os
import sys
import re

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

setup(name='uservoice',
      version='0.0.24',
      description='UserVoice Python library',
      url = 'http://pypi.python.org/pypi/uservoice/',
      long_description=re.sub(r'```[^\s]*', '', open('README.md').read()),
      license='MIT',
      author='UserVoice Inc.',
      author_email='dev@uservoice.com',
      packages=['uservoice'],
      install_requires=[
          'pycryptodome',
          'pytz',
          'PyYAML',
          'requests',
          'future',
          'requests-oauthlib'],
      test_suite='test',
)
<commit_msg>Add content type description<commit_after>import os
import sys
import re

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

setup(name='uservoice',
      version='0.0.24',
      description='UserVoice Python library',
      url = 'http://pypi.python.org/pypi/uservoice/',
      long_description=re.sub(r'```[^\s]*', '', open('README.md').read()),
      long_description_content_type="text/markdown",
      license='MIT',
      author='UserVoice Inc.',
      author_email='dev@uservoice.com',
      packages=['uservoice'],
      install_requires=[
          'pycryptodome',
          'pytz',
          'PyYAML',
          'requests',
          'future',
          'requests-oauthlib'],
      test_suite='test',
)
<|endoftext|>


<commit_before>from setuptools import setup
from pathlib    import Path

base_dir     = Path(__file__).parent.resolve()
version_file = base_dir / "augur/__version__.py"
readme_file  = base_dir / "README.md"

# Eval the version file to get __version__; avoids importing our own package
with version_file.open() as f:
    exec(f.read())

# Get the long description from the README file
with readme_file.open(encoding = "utf-8") as f:
    long_description = f.read()

setup(
        name = "nextstrain-augur",
        version = __version__,
        author = "Nextstrain developers",
        author_email = "trevor@bedford.io, richard.neher@unibas.ch",
        description = "A bioinformatics toolkit for phylogenetic analysis.",
        long_description = long_description,
        long_description_content_type = "text/markdown",
        keywords = "nextstrain, molecular epidemiology",
        url = "https://github.com/nextstrain/augur",
        project_urls = {
            "Bug Reports": "https://github.com/nextstrain/augur/issues",
            "Change Log":  "https://github.com/nextstrain/augur/blob/master/CHANGES.md#next",
            "Source":      "https://github.com/nextstrain/augur",
        },
        packages=['augur'],
        package_data={'augur': ['data/*']},
        data_files = [("", ["LICENSE.txt"])],
        python_requires = '>=3.4',
        install_requires = [
            "bcbio-gff >=0.6.4, ==0.6.*",
            "biopython >=1.73, ==1.*",
            "boto >=2.38, ==2.*",
            "cvxopt >=1.1.9, ==1.1.*",
            "jsonschema ==3.0.0a3",
            "pandas >=0.23.4",
            "phylo-treetime >=0.5.6, ==0.5.*",
            "snakemake >=5.1.5, ==5.*"
        ],
        extras_require={
            'dev': [
                "pylint >=1.7.6, ==1.7.*",
                "pytest >=3.2.1, ==3.*",
                "recommonmark >=0.5.0",
                "Sphinx >=2.0.1",
                "sphinx-argparse >=0.2.5",
                "sphinx-rtd-theme >=0.4.3",
                "wheel >=0.32.3, ==0.32.*",
                "ipdb >=0.10.1"
            ]
        },
        classifiers=[
            "Development Status :: 3 - Alpha",
            "Topic :: Scientific/Engineering :: Bio-Informatics",
            "License :: OSI Approved :: GNU Affero General Public License v3",

            # Python 3 only; pathlib is >=3.4
            "Programming Language :: Python :: 3",
            "Programming Language :: Python :: 3.4",
            "Programming Language :: Python :: 3.5",
            "Programming Language :: Python :: 3.6",
            ],

        # Install an "augur" program which calls augur.__main__.main()
        #   https://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creation
        entry_points = {
            "console_scripts": [
                "augur = augur.__main__:main",
            ],
        },
        )
<commit_msg>docs update required sphinx-markdown-tables -> added to setup.py<commit_after>from setuptools import setup
from pathlib    import Path

base_dir     = Path(__file__).parent.resolve()
version_file = base_dir / "augur/__version__.py"
readme_file  = base_dir / "README.md"

# Eval the version file to get __version__; avoids importing our own package
with version_file.open() as f:
    exec(f.read())

# Get the long description from the README file
with readme_file.open(encoding = "utf-8") as f:
    long_description = f.read()

setup(
        name = "nextstrain-augur",
        version = __version__,
        author = "Nextstrain developers",
        author_email = "trevor@bedford.io, richard.neher@unibas.ch",
        description = "A bioinformatics toolkit for phylogenetic analysis.",
        long_description = long_description,
        long_description_content_type = "text/markdown",
        keywords = "nextstrain, molecular epidemiology",
        url = "https://github.com/nextstrain/augur",
        project_urls = {
            "Bug Reports": "https://github.com/nextstrain/augur/issues",
            "Change Log":  "https://github.com/nextstrain/augur/blob/master/CHANGES.md#next",
            "Source":      "https://github.com/nextstrain/augur",
        },
        packages=['augur'],
        package_data={'augur': ['data/*']},
        data_files = [("", ["LICENSE.txt"])],
        python_requires = '>=3.4',
        install_requires = [
            "bcbio-gff >=0.6.4, ==0.6.*",
            "biopython >=1.73, ==1.*",
            "boto >=2.38, ==2.*",
            "cvxopt >=1.1.9, ==1.1.*",
            "jsonschema ==3.0.0a3",
            "pandas >=0.23.4",
            "phylo-treetime >=0.5.6, ==0.5.*",
            "snakemake >=5.1.5, ==5.*"
        ],
        extras_require={
            'dev': [
                "pylint >=1.7.6, ==1.7.*",
                "pytest >=3.2.1, ==3.*",
                "recommonmark >=0.5.0",
                "Sphinx >=2.0.1",
                "sphinx-argparse >=0.2.5",
                "sphinx-markdown-tables >= 0.0.9",
                "sphinx-rtd-theme >=0.4.3",
                "wheel >=0.32.3, ==0.32.*",
                "ipdb >=0.10.1"
            ]
        },
        classifiers=[
            "Development Status :: 3 - Alpha",
            "Topic :: Scientific/Engineering :: Bio-Informatics",
            "License :: OSI Approved :: GNU Affero General Public License v3",

            # Python 3 only; pathlib is >=3.4
            "Programming Language :: Python :: 3",
            "Programming Language :: Python :: 3.4",
            "Programming Language :: Python :: 3.5",
            "Programming Language :: Python :: 3.6",
            ],

        # Install an "augur" program which calls augur.__main__.main()
        #   https://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creation
        entry_points = {
            "console_scripts": [
                "augur = augur.__main__:main",
            ],
        },
        )
<|endoftext|>


<commit_before>#!/usr/bin/python

"""
Installation script for the sfa module
"""

import sys, os, os.path
from glob import glob
import shutil
from distutils.core import setup

scripts = glob("clientbin/*.py") + \
    [
    'config/sfa-config-tty',
    'config/sfa-config',
    'config/gen-sfa-cm-config.py',
    'sfa/server/sfa-start.py',
    'sfa/server/sfa_component_setup.py',
    'sfatables/sfatables',
    'keyconvert/keyconvert.py',
    'flashpolicy/sfa_flashpolicy.py',
    ]

packages = [
    'sfa',
    'sfa/trust',
    'sfa/storage',
    'sfa/util',
    'sfa/server',
    'sfa/methods',
    'sfa/generic',
    'sfa/managers',
    'sfa/importer',
    'sfa/rspecs',
    'sfa/rspecs/elements',
    'sfa/rspecs/elements/versions',
    'sfa/rspecs/versions',
    'sfa/client',
    'sfa/planetlab',
    'sfa/openstack',
    'sfa/federica',
    'sfatables',
    'sfatables/commands',
    'sfatables/processors',
    ]

initscripts = [ 'sfa', 'sfa-cm' ]

data_files = [ ('/etc/sfa/', [ 'config/aggregates.xml',
                              'config/registries.xml',
                              'config/default_config.xml',
                              'config/sfi_config',
                              'config/topology',
                              'sfa/managers/pl/pl.rng',
                              'sfa/trust/credential.xsd',
                              'sfa/trust/top.xsd',
                              'sfa/trust/sig.xsd',
                              'sfa/trust/xml.xsd',
                              'sfa/trust/protogeni-rspec-common.xsd',
                              'flashpolicy/sfa_flashpolicy_config.xml',
                            ]),
               ('/etc/sfatables/matches/', glob('sfatables/matches/*.xml')),
               ('/etc/sfatables/targets/', glob('sfatables/targets/*.xml')),
               ('/etc/init.d/', [ "init.d/%s"%x for x in initscripts ]),
               ('/usr/share/sfa/migrations', glob('sfa/storage/migrations/*.*') ),
               ('/usr/share/sfa/migrations/versions', glob('sfa/storage/migrations/versions/*') ),
               ('/usr/share/sfa/examples/', glob('sfa/examples/*' ) + [ 'cron.d/sfa.cron' ] ),
              ]

# add sfatables processors as data_files
processor_files = [f for f in glob('sfatables/processors/*') if os.path.isfile(f)]
data_files.append(('/etc/sfatables/processors/', processor_files))
processor_subdirs = [d for d in glob('sfatables/processors/*') if os.path.isdir(d)]
for d in processor_subdirs:
    etc_dir = os.path.join("/etc/sfatables/processors", os.path.basename(d))
    d_files = [f for f in glob(d + '/*') if os.path.isfile(f)]
    data_files.append((etc_dir, processor_files))

if sys.argv[1] in ['uninstall', 'remove', 'delete', 'clean']:
    python_path = sys.path
    site_packages_path = [ os.path.join(p,'sfa') for p in python_path if p.endswith('site-packages')]
    site_packages_path += [ os.path.join(p,'sfatables') for p in python_path if p.endswith('site-packages')]
    remove_dirs = ['/etc/sfa/', '/etc/sfatables'] + site_packages_path
    remove_bins = [ '/usr/bin/' + os.path.basename(bin) for bin in scripts ]
    remove_files = remove_bins + [ "/etc/init.d/%s"%x for x in initscripts ]

    # remove files
    for filepath in remove_files:
        print "removing", filepath, "...",
        try:
            os.remove(filepath)
            print "success"
        except: print "failed"
    # remove directories
    for directory in remove_dirs:
        print "removing", directory, "...",
        try:
            shutil.rmtree(directory)
            print "success"
        except: print "failed"
else:
    # avoid repeating what's in the specfile already
    setup(name='sfa',
          packages = packages,
          data_files = data_files,
          scripts = scripts)

<commit_msg>update packages list<commit_after>#!/usr/bin/python

"""
Installation script for the sfa module
"""

import sys, os, os.path
from glob import glob
import shutil
from distutils.core import setup

scripts = glob("clientbin/*.py") + \
    [
    'config/sfa-config-tty',
    'config/sfa-config',
    'config/gen-sfa-cm-config.py',
    'sfa/server/sfa-start.py',
    'sfa/server/sfa_component_setup.py',
    'sfatables/sfatables',
    'keyconvert/keyconvert.py',
    'flashpolicy/sfa_flashpolicy.py',
    ]

packages = [
    'sfa',
    'sfa/trust',
    'sfa/storage',
    'sfa/util',
    'sfa/server',
    'sfa/methods',
    'sfa/generic',
    'sfa/managers',
    'sfa/importer',
    'sfa/rspecs',
    'sfa/rspecs/elements',
    'sfa/rspecs/elements/versions',
    'sfa/rspecs/elements/v3',
    'sfa/rspecs/versions',
    'sfa/client',
    'sfa/planetlab',
    'sfa/openstack',
    'sfa/federica',
    'sfatables',
    'sfatables/commands',
    'sfatables/processors',
    ]

initscripts = [ 'sfa', 'sfa-cm' ]

data_files = [ ('/etc/sfa/', [ 'config/aggregates.xml',
                              'config/registries.xml',
                              'config/default_config.xml',
                              'config/sfi_config',
                              'config/topology',
                              'sfa/managers/pl/pl.rng',
                              'sfa/trust/credential.xsd',
                              'sfa/trust/top.xsd',
                              'sfa/trust/sig.xsd',
                              'sfa/trust/xml.xsd',
                              'sfa/trust/protogeni-rspec-common.xsd',
                              'flashpolicy/sfa_flashpolicy_config.xml',
                            ]),
               ('/etc/sfatables/matches/', glob('sfatables/matches/*.xml')),
               ('/etc/sfatables/targets/', glob('sfatables/targets/*.xml')),
               ('/etc/init.d/', [ "init.d/%s"%x for x in initscripts ]),
               ('/usr/share/sfa/migrations', glob('sfa/storage/migrations/*.*') ),
               ('/usr/share/sfa/migrations/versions', glob('sfa/storage/migrations/versions/*') ),
               ('/usr/share/sfa/examples/', glob('sfa/examples/*' ) + [ 'cron.d/sfa.cron' ] ),
              ]

# add sfatables processors as data_files
processor_files = [f for f in glob('sfatables/processors/*') if os.path.isfile(f)]
data_files.append(('/etc/sfatables/processors/', processor_files))
processor_subdirs = [d for d in glob('sfatables/processors/*') if os.path.isdir(d)]
for d in processor_subdirs:
    etc_dir = os.path.join("/etc/sfatables/processors", os.path.basename(d))
    d_files = [f for f in glob(d + '/*') if os.path.isfile(f)]
    data_files.append((etc_dir, processor_files))

if sys.argv[1] in ['uninstall', 'remove', 'delete', 'clean']:
    python_path = sys.path
    site_packages_path = [ os.path.join(p,'sfa') for p in python_path if p.endswith('site-packages')]
    site_packages_path += [ os.path.join(p,'sfatables') for p in python_path if p.endswith('site-packages')]
    remove_dirs = ['/etc/sfa/', '/etc/sfatables'] + site_packages_path
    remove_bins = [ '/usr/bin/' + os.path.basename(bin) for bin in scripts ]
    remove_files = remove_bins + [ "/etc/init.d/%s"%x for x in initscripts ]

    # remove files
    for filepath in remove_files:
        print "removing", filepath, "...",
        try:
            os.remove(filepath)
            print "success"
        except: print "failed"
    # remove directories
    for directory in remove_dirs:
        print "removing", directory, "...",
        try:
            shutil.rmtree(directory)
            print "success"
        except: print "failed"
else:
    # avoid repeating what's in the specfile already
    setup(name='sfa',
          packages = packages,
          data_files = data_files,
          scripts = scripts)

<|endoftext|>


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

import os
import sys
import subprocess
from setuptools import find_packages, Command

if sys.version_info < (3, 4):
    sys.exit('Orange requires Python >= 3.4')
try:
    from numpy.distutils.core import setup
except ImportError:
    sys.exit('setup requires numpy; install numpy first')

NAME = 'Orange'

VERSION = '3.3.3'
ISRELEASED = False

DESCRIPTION = 'Orange, a component-based data mining framework.'
README_FILE = os.path.join(os.path.dirname(__file__), 'README.md')
LONG_DESCRIPTION = open(README_FILE).read()
AUTHOR = 'Bioinformatics Laboratory, FRI UL'
AUTHOR_EMAIL = 'info@biolab.si'
URL = 'http://orange.biolab.si/'
LICENSE = 'GPLv3+'

KEYWORDS = (
    'data mining',
    'machine learning',
    'artificial intelligence',
)

CLASSIFIERS = (
    'Development Status :: 4 - Beta',
    'Environment :: X11 Applications :: Qt',
    'Environment :: Console',
    'Environment :: Plugins',
    'Programming Language :: Python',
    'Framework :: Orange',
    'License :: OSI Approved :: '
    'GNU General Public License v3 or later (GPLv3+)',
    'Operating System :: POSIX',
    'Operating System :: Microsoft :: Windows',
    'Topic :: Scientific/Engineering :: Artificial Intelligence',
    'Topic :: Scientific/Engineering :: Visualization',
    'Topic :: Software Development :: Libraries :: Python Modules',
    'Intended Audience :: Education',
    'Intended Audience :: Science/Research',
    'Intended Audience :: Developers',
)

requirements = ['requirements-core.txt', 'requirements-gui.txt']

INSTALL_REQUIRES = sorted(set(
    line.partition('#')[0].strip()
    for file in (os.path.join(os.path.dirname(__file__), file)
                 for file in requirements)
    for line in open(file)
) - {''})

ENTRY_POINTS = {
    "orange.canvas.help": (
        "html-index = Orange.widgets:WIDGET_HELP_PATH",
    ),
    "gui_scripts": (
        "orange-canvas = Orange.canvas.__main__:main",
    ),
}

# Return the git revision as a string
def git_version():
    """Return the git revision as a string.

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

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

def write_version_py(filename='Orange/version.py'):
    # Copied from numpy setup.py
    cnt = """
# THIS FILE IS GENERATED FROM ORANGE 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
    short_version += ".dev"
"""
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    elif os.path.exists('Orange/version.py'):
        # must be a source distribution, use existing version file
        import imp
        version = imp.load_source("Orange.version", "Orange/version.py")
        GIT_REVISION = version.git_revision
    else:
        GIT_REVISION = "Unknown"

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

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

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)

    # Avoid non-useful msg:
    # "Ignoring attempt to set 'name' (from ... "
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)

    config.add_subpackage('Orange')

    config.get_version('Orange/version.py')  # sets config.version

    return config

PACKAGES = find_packages()

# Extra non .py, .{so,pyd} files that are installed within the package dir
# hierarchy
PACKAGE_DATA = {
    "Orange": ["datasets/*.{}".format(ext)
               for ext in ["tab", "csv", "basket", "info"]],
    "Orange.canvas": ["icons/*.png", "icons/*.svg"],
    "Orange.canvas.styles": ["*.qss", "orange/*.svg"],
    "Orange.canvas.application.tutorials": ["*.ows"],
    "Orange.canvas.report": ["icons/*.svg", "*.html"],
    "Orange.widgets": ["icons/*.png", "icons/*.svg"],
    "Orange.widgets.classify": ["icons/*.svg"],
    "Orange.widgets.data": ["icons/*.svg",
                            "icons/paintdata/*.png",
                            "icons/paintdata/*.svg"],
    "Orange.widgets.evaluate": ["icons/*.svg"],
    "Orange.widgets.visualize": ["icons/*.svg"],
    "Orange.widgets.regression": ["icons/*.svg"],
    "Orange.widgets.unsupervised": ["icons/*.svg"],
    "Orange.widgets.utils.plot": ["*.fs", "*.gs", "*.vs"],
    "Orange.widgets.utils.plot.primitives": ["*.obj"],
    "Orange.tests": ["xlsx_files/*.xlsx", "*.tab", "*.basket", "*.csv"]
}

class LintCommand(Command):
    """A setup.py lint subcommand developers can run locally."""
    description = "run code linter(s)"
    user_options = []
    initialize_options = finalize_options = lambda self: None

    def run(self):
        """Lint current branch compared to a reasonable master branch"""
        sys.exit(subprocess.call(r'''
        set -eu
        upstream="$(git remote -v |
                    awk '/[@\/]github.com[:\/]biolab\/orange3[\. ]/{ print $1; exit }')"
        git fetch -q $upstream master
        best_ancestor=$(git merge-base HEAD refs/remotes/$upstream/master)
        .travis/check_pylint_diff $best_ancestor
        ''', shell=True, cwd=os.path.dirname(os.path.abspath(__file__))))

class CoverageCommand(Command):
    """A setup.py coverage subcommand developers can run locally."""
    description = "run code coverage"
    user_options = []
    initialize_options = finalize_options = lambda self: None

    def run(self):
        """Check coverage on current workdir"""
        sys.exit(subprocess.call(r'''
        coverage run --source=Orange -m unittest -v Orange.tests
        echo; echo
        coverage report
        coverage html &&
            { echo; echo "See also: file://$(pwd)/htmlcov/index.html"; echo; }
        ''', shell=True, cwd=os.path.dirname(os.path.abspath(__file__))))

# Install desktop file and icon on GNU/Linux/BSD
DATA_FILES = []
if any(sys.platform.startswith(platform)
       for platform in ('linux', 'freebsd')):
    # Patch desktop file executable to work with virtualenv
    try:
        sys.real_prefix
    except AttributeError:
        pass  # Not in virtualenv
    else:
        with open(os.path.join(os.path.dirname(__file__),
                               'distribute',
                               'orange-canvas.desktop'), 'r+') as desktop:
            spec = []
            for line in desktop:
                if line.startswith('Exec='):
                    line = 'Exec="{}" -m Orange.canvas\n'.format(sys.executable)
                spec.append(line)
            desktop.seek(0)
            desktop.truncate(0)
            desktop.writelines(spec)

    usr_share = os.path.join(sys.prefix, "share")
    if not usr_share.startswith('/usr/') or not os.access(usr_share, os.W_OK):
        usr_share = os.environ.get('XDG_DATA_HOME',
                                   os.path.expanduser('~/.local/share'))
    DATA_FILES += [
        (os.path.join(usr_share, 'applications'),
         ['distribute/orange-canvas.desktop']),
        (os.path.join(usr_share, 'icons', 'hicolor', 'scalable', 'apps'),
         ['distribute/orange-canvas.svg'])
    ]

def setup_package():
    write_version_py()
    setup(
        configuration=configuration,
        name=NAME,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        url=URL,
        license=LICENSE,
        keywords=KEYWORDS,
        classifiers=CLASSIFIERS,
        packages=PACKAGES,
        package_data=PACKAGE_DATA,
        install_requires=INSTALL_REQUIRES,
        entry_points=ENTRY_POINTS,
        data_files=DATA_FILES,
        zip_safe=False,
        test_suite='Orange.tests.test_suite',
        cmdclass={
            'lint': LintCommand,
            'coverage': CoverageCommand,
        },
    )

if __name__ == '__main__':
    setup_package()
<commit_msg>Revert "setup.py: Install desktop file and icon on GNU/Linux/FreeBSD"<commit_after>#! /usr/bin/env python3

import os
import sys
import subprocess
from setuptools import find_packages, Command

if sys.version_info < (3, 4):
    sys.exit('Orange requires Python >= 3.4')
try:
    from numpy.distutils.core import setup
except ImportError:
    sys.exit('setup requires numpy; install numpy first')

NAME = 'Orange'

VERSION = '3.3.3'
ISRELEASED = False

DESCRIPTION = 'Orange, a component-based data mining framework.'
README_FILE = os.path.join(os.path.dirname(__file__), 'README.md')
LONG_DESCRIPTION = open(README_FILE).read()
AUTHOR = 'Bioinformatics Laboratory, FRI UL'
AUTHOR_EMAIL = 'info@biolab.si'
URL = 'http://orange.biolab.si/'
LICENSE = 'GPLv3+'

KEYWORDS = (
    'data mining',
    'machine learning',
    'artificial intelligence',
)

CLASSIFIERS = (
    'Development Status :: 4 - Beta',
    'Environment :: X11 Applications :: Qt',
    'Environment :: Console',
    'Environment :: Plugins',
    'Programming Language :: Python',
    'Framework :: Orange',
    'License :: OSI Approved :: '
    'GNU General Public License v3 or later (GPLv3+)',
    'Operating System :: POSIX',
    'Operating System :: Microsoft :: Windows',
    'Topic :: Scientific/Engineering :: Artificial Intelligence',
    'Topic :: Scientific/Engineering :: Visualization',
    'Topic :: Software Development :: Libraries :: Python Modules',
    'Intended Audience :: Education',
    'Intended Audience :: Science/Research',
    'Intended Audience :: Developers',
)

requirements = ['requirements-core.txt', 'requirements-gui.txt']

INSTALL_REQUIRES = sorted(set(
    line.partition('#')[0].strip()
    for file in (os.path.join(os.path.dirname(__file__), file)
                 for file in requirements)
    for line in open(file)
) - {''})

ENTRY_POINTS = {
    "orange.canvas.help": (
        "html-index = Orange.widgets:WIDGET_HELP_PATH",
    ),
    "gui_scripts": (
        "orange-canvas = Orange.canvas.__main__:main",
    ),
}

# Return the git revision as a string
def git_version():
    """Return the git revision as a string.

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

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

def write_version_py(filename='Orange/version.py'):
    # Copied from numpy setup.py
    cnt = """
# THIS FILE IS GENERATED FROM ORANGE 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
    short_version += ".dev"
"""
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    elif os.path.exists('Orange/version.py'):
        # must be a source distribution, use existing version file
        import imp
        version = imp.load_source("Orange.version", "Orange/version.py")
        GIT_REVISION = version.git_revision
    else:
        GIT_REVISION = "Unknown"

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

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

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)

    # Avoid non-useful msg:
    # "Ignoring attempt to set 'name' (from ... "
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)

    config.add_subpackage('Orange')

    config.get_version('Orange/version.py')  # sets config.version

    return config

PACKAGES = find_packages()

# Extra non .py, .{so,pyd} files that are installed within the package dir
# hierarchy
PACKAGE_DATA = {
    "Orange": ["datasets/*.{}".format(ext)
               for ext in ["tab", "csv", "basket", "info"]],
    "Orange.canvas": ["icons/*.png", "icons/*.svg"],
    "Orange.canvas.styles": ["*.qss", "orange/*.svg"],
    "Orange.canvas.application.tutorials": ["*.ows"],
    "Orange.canvas.report": ["icons/*.svg", "*.html"],
    "Orange.widgets": ["icons/*.png", "icons/*.svg"],
    "Orange.widgets.classify": ["icons/*.svg"],
    "Orange.widgets.data": ["icons/*.svg",
                            "icons/paintdata/*.png",
                            "icons/paintdata/*.svg"],
    "Orange.widgets.evaluate": ["icons/*.svg"],
    "Orange.widgets.visualize": ["icons/*.svg"],
    "Orange.widgets.regression": ["icons/*.svg"],
    "Orange.widgets.unsupervised": ["icons/*.svg"],
    "Orange.widgets.utils.plot": ["*.fs", "*.gs", "*.vs"],
    "Orange.widgets.utils.plot.primitives": ["*.obj"],
    "Orange.tests": ["xlsx_files/*.xlsx", "*.tab", "*.basket", "*.csv"]
}

class LintCommand(Command):
    """A setup.py lint subcommand developers can run locally."""
    description = "run code linter(s)"
    user_options = []
    initialize_options = finalize_options = lambda self: None

    def run(self):
        """Lint current branch compared to a reasonable master branch"""
        sys.exit(subprocess.call(r'''
        set -eu
        upstream="$(git remote -v |
                    awk '/[@\/]github.com[:\/]biolab\/orange3[\. ]/{ print $1; exit }')"
        git fetch -q $upstream master
        best_ancestor=$(git merge-base HEAD refs/remotes/$upstream/master)
        .travis/check_pylint_diff $best_ancestor
        ''', shell=True, cwd=os.path.dirname(os.path.abspath(__file__))))

class CoverageCommand(Command):
    """A setup.py coverage subcommand developers can run locally."""
    description = "run code coverage"
    user_options = []
    initialize_options = finalize_options = lambda self: None

    def run(self):
        """Check coverage on current workdir"""
        sys.exit(subprocess.call(r'''
        coverage run --source=Orange -m unittest -v Orange.tests
        echo; echo
        coverage report
        coverage html &&
            { echo; echo "See also: file://$(pwd)/htmlcov/index.html"; echo; }
        ''', shell=True, cwd=os.path.dirname(os.path.abspath(__file__))))

def setup_package():
    write_version_py()
    setup(
        configuration=configuration,
        name=NAME,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        url=URL,
        license=LICENSE,
        keywords=KEYWORDS,
        classifiers=CLASSIFIERS,
        packages=PACKAGES,
        package_data=PACKAGE_DATA,
        install_requires=INSTALL_REQUIRES,
        entry_points=ENTRY_POINTS,
        zip_safe=False,
        test_suite='Orange.tests.test_suite',
        cmdclass={
            'lint': LintCommand,
            'coverage': CoverageCommand,
        },
    )

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


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

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

VERSION = "0.3.0"

setup(
    name="pi_switch",
    packages = [ "pi_switch" ],
    version = VERSION,
    description = "A library for the raspberry pi to control remote power outlet sockets.",
    author = "Alexander Rueedlinger",
    author_email = "a.rueedlinger@gmail.com",
    url = "https://github.com/lexruee/pi-switch-python",
    download_url = "https://github.com/lexruee/pi-switch-python/tarball/%s" % VERSION,
    keywords = ['switch', 'outlet sockets', 'control', 'remote', 'raspberry pi'],
    classifiers = [
        "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
        "Development Status :: 3 - Alpha",
        "Operating System :: Other OS",
        "Intended Audience :: Developers",
        "Topic :: System :: Hardware",
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Environment :: Other Environment"
    ],
    ext_modules = [
        Extension("_pi_switch",
                    sources = [
                        "pi_switch/wrapper/pi_switch.cpp"
                    ],
                    libraries = ["boost_python", "wiringPi"],
                    extra_compile_args=[
                    '-Wno-write-strings'
                    ])
    ],
    long_description = """\
Pi Switch
-------------------------------------

Pi Switch is a library for controlling 315/433MHz remote power outlet sockets.

This library is a port of the Arduino rc-switch library for the Raspberry Pi and the Python Programming Language.
"""
)
<commit_msg>update setup.py<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

VERSION = "0.3.0"

setup(
    name="pi_switch",
    packages = [ "pi_switch" ],
    version = VERSION,
    description = "A library for the raspberry pi to control remote power outlet sockets.",
    author = "Alexander Rüedlinger",
    author_email = "a.rueedlinger@gmail.com",
    url = "https://github.com/lexruee/pi-switch-python",
    download_url = "https://github.com/lexruee/pi-switch-python/tarball/%s" % VERSION,
    keywords = ['switch', 'outlet sockets', 'control', 'remote', 'raspberry pi'],
    classifiers = [
        "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
        "Development Status :: 3 - Alpha",
        "Operating System :: Other OS",
        "Intended Audience :: Developers",
        "Topic :: System :: Hardware",
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Environment :: Other Environment"
    ],
    ext_modules = [
        Extension("_pi_switch",
                    sources = [
                        "pi_switch/wrapper/pi_switch.cpp"
                    ],
                    libraries = ["boost_python", "wiringPi"],
                    extra_compile_args=[
                    '-Wno-write-strings'
                    ])
    ],
    long_description = """\
Pi Switch
-------------------------------------

Pi Switch is a library for controlling 315/433MHz remote power outlet sockets.

This library is a port of the Arduino rc-switch library for the Raspberry Pi and the Python Programming Language.
"""
)
<|endoftext|>


<commit_before>import re
from setuptools import setup, find_packages

EXTRAS_REQUIRE = {
    "tests": ["pytest", "pytz", "simplejson"],
    "lint": ["flake8==3.7.8", "flake8-bugbear==19.8.0", "pre-commit~=1.17"],
    "docs": [
        "sphinx==2.1.2",
        "sphinx-issues==1.2.0",
        "alabaster==0.7.12",
        "sphinx-version-warning==1.1.2",
    ],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]

def find_version(fname):
    """Attempts to find the version number in the file names fname.
    Raises RuntimeError if not found.
    """
    version = ""
    with open(fname, "r") as fp:
        reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
        for line in fp:
            m = reg.match(line)
            if m:
                version = m.group(1)
                break
    if not version:
        raise RuntimeError("Cannot find version information")
    return version

def read(fname):
    with open(fname) as fp:
        content = fp.read()
    return content

setup(
    name="marshmallow",
    version=find_version("src/marshmallow/__init__.py"),
    description=(
        "A lightweight library for converting complex "
        "datatypes to and from native Python datatypes."
    ),
    long_description=read("README.rst"),
    author="Steven Loria",
    author_email="sloria1@gmail.com",
    url="https://github.com/marshmallow-code/marshmallow",
    packages=find_packages("src", exclude=("test*", "examples")),
    package_dir={"": "src"},
    include_package_data=True,
    extras_require=EXTRAS_REQUIRE,
    license="MIT",
    zip_safe=False,
    keywords=[
        "serialization",
        "rest",
        "json",
        "api",
        "marshal",
        "marshalling",
        "deserialization",
        "validation",
        "schema",
    ],
    python_requires=">=3.5",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
    ],
    test_suite="tests",
    project_urls={
        "Changelog": "https://marshmallow.readthedocs.io/en/latest/changelog.html",
        "Issues": "https://github.com/marshmallow-code/marshmallow/issues",
        "Funding": "https://opencollective.com/marshmallow",
        "Tidelift": "https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=pypi-marshmallow&utm_medium=pypi",  # noqa
    },
)
<commit_msg>Bump sphinx from 2.1.2 to 2.2.0<commit_after>import re
from setuptools import setup, find_packages

EXTRAS_REQUIRE = {
    "tests": ["pytest", "pytz", "simplejson"],
    "lint": ["flake8==3.7.8", "flake8-bugbear==19.8.0", "pre-commit~=1.17"],
    "docs": [
        "sphinx==2.2.0",
        "sphinx-issues==1.2.0",
        "alabaster==0.7.12",
        "sphinx-version-warning==1.1.2",
    ],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]

def find_version(fname):
    """Attempts to find the version number in the file names fname.
    Raises RuntimeError if not found.
    """
    version = ""
    with open(fname, "r") as fp:
        reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
        for line in fp:
            m = reg.match(line)
            if m:
                version = m.group(1)
                break
    if not version:
        raise RuntimeError("Cannot find version information")
    return version

def read(fname):
    with open(fname) as fp:
        content = fp.read()
    return content

setup(
    name="marshmallow",
    version=find_version("src/marshmallow/__init__.py"),
    description=(
        "A lightweight library for converting complex "
        "datatypes to and from native Python datatypes."
    ),
    long_description=read("README.rst"),
    author="Steven Loria",
    author_email="sloria1@gmail.com",
    url="https://github.com/marshmallow-code/marshmallow",
    packages=find_packages("src", exclude=("test*", "examples")),
    package_dir={"": "src"},
    include_package_data=True,
    extras_require=EXTRAS_REQUIRE,
    license="MIT",
    zip_safe=False,
    keywords=[
        "serialization",
        "rest",
        "json",
        "api",
        "marshal",
        "marshalling",
        "deserialization",
        "validation",
        "schema",
    ],
    python_requires=">=3.5",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
    ],
    test_suite="tests",
    project_urls={
        "Changelog": "https://marshmallow.readthedocs.io/en/latest/changelog.html",
        "Issues": "https://github.com/marshmallow-code/marshmallow/issues",
        "Funding": "https://opencollective.com/marshmallow",
        "Tidelift": "https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=pypi-marshmallow&utm_medium=pypi",  # noqa
    },
)
<|endoftext|>


<commit_before>"""
setup.py for jira-cli
"""
__author__ = "Ali-Akber Saifee"
__email__ = "ali@indydevs.org"

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

default_version="0.1"
def get_version_from_tag():
    is_tag = os.popen("git describe").read().strip()
    if not is_tag:
        return default_version
    return is_tag

setup(name='jira-cli',
     author="Ali-Akber Saifee",
     author_email="ali@indydevs.org",
     url="http://hg.indydevs.org/jira-cli",
     version = get_version_from_tag(),
     description = "command line utility for interacting with jira",
     long_description = open("README").read(),
     packages = find_packages(exclude=['ez_setup']),
     include_package_data = True,
     package_data = {
            '':[ 'README' ],
         },
     zip_safe = False,
     install_requires =[
         'setuptools',
         'termcolor'
         ],
     entry_points = {
         'console_scripts' : [
             'jira-cli = jiracli.cli:main',
             ]
        },
     )

<commit_msg>make versioning static<commit_after>"""
setup.py for jira-cli
"""
__author__ = "Ali-Akber Saifee"
__email__ = "ali@indydevs.org"

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

version="0.2.7"

setup(name='jira-cli',
     author="Ali-Akber Saifee",
     author_email="ali@indydevs.org",
     url="http://hg.indydevs.org/jira-cli",
     version = version,
     description = "command line utility for interacting with jira",
     long_description = open("README").read(),
     packages = find_packages(exclude=['ez_setup']),
     include_package_data = True,
     package_data = {
            '':[ 'README' ],
         },
     zip_safe = False,
     install_requires =[
         'setuptools',
         'termcolor'
         ],
     entry_points = {
         'console_scripts' : [
             'jira-cli = jiracli.cli:main',
             ]
        },
     )

<|endoftext|>


<commit_before>from io import open
from setuptools import setup
from warnings import warn

try:
    with open('bidict/VERSION', encoding='utf8') as f:
        version = f.read().strip()
except Exception as e:
    version = '0.0.0'
    warn('Could not open bidict/VERSION, using bogus version (%s): %r' %
         (version, e))
try:
    with open('README.rst', encoding='utf8') as f:
        long_description = f.read()
except Exception as e:
    long_description = 'See https://bidict.readthedocs.org'
    warn('Could not open README.rst, using provisional long_description '
         '(%r): %r' % (long_description, e))

tests_require = [
    'coverage==4.2b1',
    'flake8==2.5.4',
    'hypothesis==3.4.0',
    'hypothesis-pytest==0.19.0',
    'py==1.4.31',
    'pydocstyle==1.0.0',
    'pytest==2.9.2',
    'pytest-benchmark==3.0.0',
    'pytest-cov==2.2.1',
    'Sphinx==1.4.4',
]

setup(
    name='bidict',
    version=version,
    author='Joshua Bronson',
    author_email='jab@math.brown.edu',
    description='Efficient, Pythonic bidirectional map implementation and related functionality',
    long_description=long_description,
    keywords='dict, dictionary, mapping, bidirectional, bijection, bijective, injective, two-way, 2-way, double, inverse, reverse',
    url='https://github.com/jab/bidict',
    license='ISCL',
    packages=['bidict'],
    package_data=dict(bidict=['VERSION']),
    zip_safe=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: ISC License (ISCL)',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    tests_require=tests_require,
    extras_require=dict(
        test=tests_require,
        dev=tests_require + ['pre-commit==0.7.6', 'tox==2.3.1'],
    ),
)
<commit_msg>update to latest hypothesis (3.4.1)<commit_after>from io import open
from setuptools import setup
from warnings import warn

try:
    with open('bidict/VERSION', encoding='utf8') as f:
        version = f.read().strip()
except Exception as e:
    version = '0.0.0'
    warn('Could not open bidict/VERSION, using bogus version (%s): %r' %
         (version, e))
try:
    with open('README.rst', encoding='utf8') as f:
        long_description = f.read()
except Exception as e:
    long_description = 'See https://bidict.readthedocs.org'
    warn('Could not open README.rst, using provisional long_description '
         '(%r): %r' % (long_description, e))

tests_require = [
    'coverage==4.2b1',
    'flake8==2.5.4',
    'hypothesis==3.4.1',
    'hypothesis-pytest==0.19.0',
    'py==1.4.31',
    'pydocstyle==1.0.0',
    'pytest==2.9.2',
    'pytest-benchmark==3.0.0',
    'pytest-cov==2.2.1',
    'Sphinx==1.4.4',
]

setup(
    name='bidict',
    version=version,
    author='Joshua Bronson',
    author_email='jab@math.brown.edu',
    description='Efficient, Pythonic bidirectional map implementation and related functionality',
    long_description=long_description,
    keywords='dict, dictionary, mapping, bidirectional, bijection, bijective, injective, two-way, 2-way, double, inverse, reverse',
    url='https://github.com/jab/bidict',
    license='ISCL',
    packages=['bidict'],
    package_data=dict(bidict=['VERSION']),
    zip_safe=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: ISC License (ISCL)',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    tests_require=tests_require,
    extras_require=dict(
        test=tests_require,
        dev=tests_require + ['pre-commit==0.7.6', 'tox==2.3.1'],
    ),
)
<|endoftext|>


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

A utility library for mocking out the `requests` Python library.

:copyright: (c) 2013 Dropbox, Inc.
"""

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

setup_requires = []

if 'test' in sys.argv:
    setup_requires.append('pytest')

install_requires = [
    'requests',
    'mock',
    'six',
]

tests_require = [
    'pytest',
    'flake8',
]

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = ['tests']
        self.test_suite = True

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

setup(
    name='responses',
    version='0.1.0',
    author='David Cramer',
    description=(
        'A utility library for mocking out the `requests` Python library.'
    ),
    long_description=open('README.rst').read(),
    py_modules=['responses'],
    zip_safe=False,
    install_requires=install_requires,
    extras_require={
        'tests': tests_require,
    },
    tests_require=tests_require,
    setup_requires=setup_requires,
    cmdclass={'test': PyTest},
    include_package_data=True,
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<commit_msg>Add pytest-cov to test requirements<commit_after>#!/usr/bin/env python
"""
responses
=========

A utility library for mocking out the `requests` Python library.

:copyright: (c) 2013 Dropbox, Inc.
"""

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

setup_requires = []

if 'test' in sys.argv:
    setup_requires.append('pytest')

install_requires = [
    'requests',
    'mock',
    'six',
]

tests_require = [
    'pytest',
    'pytest-cov',
    'flake8',
]

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = ['tests']
        self.test_suite = True

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

setup(
    name='responses',
    version='0.1.0',
    author='David Cramer',
    description=(
        'A utility library for mocking out the `requests` Python library.'
    ),
    long_description=open('README.rst').read(),
    py_modules=['responses'],
    zip_safe=False,
    install_requires=install_requires,
    extras_require={
        'tests': tests_require,
    },
    tests_require=tests_require,
    setup_requires=setup_requires,
    cmdclass={'test': PyTest},
    include_package_data=True,
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup

with open('./README.rst') as f:
    long_desc = f.read()

setup(
    name='pipdeptree',
    version='0.1',
    author='Vineet Naik',
    author_email='naikvin@gmail.com',
    url='https://github.com/naiquevin/pipdeptree',
    license='MIT License',
    description='Command line utility to show dependency tree of packages',
    long_description=long_desc,
    install_requires=["pip >= 1.4.1"],
    py_modules=['pipdeptree'],
    entry_points={
        'console_scripts': [
            'pipdeptree = pipdeptree:main'
        ]
    }
)
<commit_msg>Bump version to 0.2<commit_after>from setuptools import setup

with open('./README.rst') as f:
    long_desc = f.read()

setup(
    name='pipdeptree',
    version='0.2',
    author='Vineet Naik',
    author_email='naikvin@gmail.com',
    url='https://github.com/naiquevin/pipdeptree',
    license='MIT License',
    description='Command line utility to show dependency tree of packages',
    long_description=long_desc,
    install_requires=["pip >= 1.4.1"],
    py_modules=['pipdeptree'],
    entry_points={
        'console_scripts': [
            'pipdeptree = pipdeptree:main'
        ]
    }
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
	version = '1.2.1',
	name = 'dotmap',
	packages = ['dotmap'], # this must be the same as the name above
	description = 'ordered, dynamically-expandable dot-access dictionary',
	author = 'Chris Redford',
	author_email = 'credford@gmail.com',
	url = 'https://github.com/drgrib/dotmap', # use the URL to the github repo
	download_url = 'https://github.com/drgrib/dotmap/tarball/1.0',
	keywords = ['dict', 'dot', 'map', 'order', 'ordered', 'ordereddict', 'access', 'dynamic'], # arbitrary keywords
	classifiers = [],
)<commit_msg>update version<commit_after>from setuptools import setup

setup(
	version = '1.2.2',
	name = 'dotmap',
	packages = ['dotmap'], # this must be the same as the name above
	description = 'ordered, dynamically-expandable dot-access dictionary',
	author = 'Chris Redford',
	author_email = 'credford@gmail.com',
	url = 'https://github.com/drgrib/dotmap', # use the URL to the github repo
	download_url = 'https://github.com/drgrib/dotmap/tarball/1.0',
	keywords = ['dict', 'dot', 'map', 'order', 'ordered', 'ordereddict', 'access', 'dynamic'], # arbitrary keywords
	classifiers = [],
)<|endoftext|>


<commit_before>import os
from setuptools import setup

README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='hautomation_gpio',
    version='0.1',
    packages=['hautomation_gpio'],
    include_package_data=True,
    license='BSD License',
    description='Home Automation Python Project Plugin for Raspberry PI GPIO',
    long_description=README,
#TODO set the project's home page
    url='http://blog.digitalhigh.es',
    author='Javier Pardo Blasco(jpardobl)',
    author_email='jpardo@digitalhigh.es',
    install_requires = (
      #"simplejson==2.6.2",
    ),
    #test_suite='hautomation_gpio.tests.main',
    #tests_require=("selenium", "requests"),
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Home Automation',
    ],
    entry_points={
        "tdd": [
            "run_tests = hautomation_gpio.tests.main",
        ],
        "cmds": [
            "pl_switch = hautomation_gpio.cmds:pl_switch",
        ],
        "console_scripts": [
            "populate_gpio_db = hautomation_gpio.deploy:populate_db",
                    ]
    }
)
<commit_msg>Added RPIO as installation dependency<commit_after>import os
from setuptools import setup

README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='hautomation_gpio',
    version='0.2.1',
    packages=['hautomation_gpio'],
    include_package_data=True,
    license='BSD License',
    description='Home Automation Python Project Plugin for Raspberry PI GPIO',
    long_description=README,
#TODO set the project's home page
    url='http://blog.digitalhigh.es',
    author='Javier Pardo Blasco(jpardobl)',
    author_email='jpardo@digitalhigh.es',
    install_requires = (
      #"simplejson==2.6.2",
       "RPIO",
    ),
    #test_suite='hautomation_gpio.tests.main',
    #tests_require=("selenium", "requests"),
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Home Automation',
    ],
    entry_points={
        "tdd": [
            "run_tests = hautomation_gpio.tests.main",
        ],
        "cmds": [
            "pl_switch = hautomation_gpio.cmds:pl_switch",
        ],
        "console_scripts": [
            "populate_gpio_db = hautomation_gpio.deploy:populate_db",
                    ]
    }
)
<|endoftext|>


<commit_before>"""
prettyqr

https://github.com/olorin/prettyqr
"""

from setuptools import setup, find_packages
from codecs import open
from os import path

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

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

setup(
    name="prettyqr",
    version="0.0.1",
    description="Create QR codes merged with images.",
    long_description=desc,
    url="https://github.com/olorin/prettyqr",
    author="Sharif Olorin",
    author_email="sio@tesser.org",
    license="MIT",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Multimedia :: Graphics",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
    ],
    keywords="qrcode image",
    packages=find_packages(exclude=["tests"]),
    install_requires=[
        "pillow>=3.2",
        "qrcode>=5.3",
    ],
    entry_points={
        "console_scripts": [
            "prettyqr=prettyqr.cli:main",
        ],
    },
    data_files=[
        ("img", ["img/dna-orig.png", "img/dna-qr.png"]),
    ],
)
<commit_msg>Dsetup: dn't distribute sample images<commit_after>"""
prettyqr

https://github.com/olorin/prettyqr
"""

from setuptools import setup, find_packages
from codecs import open
from os import path

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

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

setup(
    name="prettyqr",
    version="0.0.1",
    description="Create QR codes merged with images.",
    long_description=desc,
    url="https://github.com/olorin/prettyqr",
    author="Sharif Olorin",
    author_email="sio@tesser.org",
    license="MIT",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Multimedia :: Graphics",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
    ],
    keywords="qrcode image",
    packages=find_packages(exclude=["tests"]),
    install_requires=[
        "pillow>=3.2",
        "qrcode>=5.3",
    ],
    entry_points={
        "console_scripts": [
            "prettyqr=prettyqr.cli:main",
        ],
    },
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os

def read(fname):
    """
    Read file (README).
    """
    try:
        with open(os.path.join(os.path.dirname(__file__), fname)) as handle:
            return handle.read()
    except IOError:
        return ''

setup(
    name='azure-translator',
    version='0.1.4',
    description='Python SDK for Azure Translator API.',
    long_description=read('README.md'),
    author='mvdb',
    author_email='mvdb@work4labs.com',
    url='https://github.com/Work4Labs/azure-translator-python-sdk',
    packages=find_packages(),
    license='Apache',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Build Tools',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
    ],
    install_requires=[
        "requests>=2.12.0",
    ],
    test_suite='nose.collector',
    tests_require=[
        'mock',
        'nose'
    ]
)
<commit_msg>bump version<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
import os

def read(fname):
    """
    Read file (README).
    """
    try:
        with open(os.path.join(os.path.dirname(__file__), fname)) as handle:
            return handle.read()
    except IOError:
        return ''

setup(
    name='azure-translator',
    version='0.1.5',
    description='Python SDK for Azure Translator API.',
    long_description=read('README.md'),
    author='mvdb',
    author_email='mvdb@work4labs.com',
    url='https://github.com/Work4Labs/azure-translator-python-sdk',
    packages=find_packages(),
    license='Apache',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Build Tools',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
    ],
    install_requires=[
        "requests>=2.12.0",
    ],
    test_suite='nose.collector',
    tests_require=[
        'mock',
        'nose'
    ]
)
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages

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

setup(
    name = "django-pressroom",
    version = "0.7",
    url = 'http://code.google.com/p/django-pressroom/',
    license = 'BSD',
    description = "A pressroom application for django.",
    long_description = read('README'),

    author = 'Justin Driscoll, Michael Thornhill',
    author_email = 'michael@maithu.com',

    packages = find_packages('src'),
    package_dir = {'': 'src'},

    install_requires = ['setuptools',
                        'django-photologue',
                        'django-extensions',
                        'django-ajax-selects',
                        'django-endless-pagination',
                        'django-imperavi',
                        'django-reversion'],
    include_package_data=True,
    classifiers = [
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP',
    ]
)
<commit_msg>taggit is a requirement<commit_after>import os
from setuptools import setup, find_packages

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

setup(
    name = "django-pressroom",
    version = "0.7",
    url = 'http://code.google.com/p/django-pressroom/',
    license = 'BSD',
    description = "A pressroom application for django.",
    long_description = read('README.md'),

    author = 'Justin Driscoll, Michael Thornhill',
    author_email = 'michael@maithu.com',

    packages = find_packages('src'),
    package_dir = {'': 'src'},

    install_requires = ['setuptools',
                        'django-photologue',
                        'django-extensions',
                        'django-ajax-selects',
                        'django-endless-pagination',
                        'django-imperavi',
                        'django-reversion',
                        'django-taggit'
    ],
    include_package_data=True,
    classifiers = [
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP',
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='drillsrs',
    version='0.1',
    long_description=__doc__,
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    entry_points={
        'console_scripts': [
            'drill-srs = drillsrs.__main__:main'
        ]
    },
    install_requires=[
        'python-dateutil',
        'sqlalchemy',
        'jinja2',
    ],
    package_dir={'drillsrs': 'drillsrs'},
    package_data={'drillsrs': ['data/*.*']},
)
<commit_msg>Setup: add extra metadata<commit_after>from setuptools import setup, find_packages

setup(
    author='Marcin Kurczewski',
    author_email='rr-@sakuya.pl',
    name='drillsrs',
    long_description='Spaced repetition learning in CLI',
    version='0.1',
    url='https://github.com/rr-/drill',
    packages=find_packages(),

    entry_points={
        'console_scripts': [
            'drill-srs = drillsrs.__main__:main'
        ]
    },

    install_requires=[
        'python-dateutil',
        'sqlalchemy',
        'jinja2',
    ],
    package_dir={'drillsrs': 'drillsrs'},
    package_data={'drillsrs': ['data/*.*']},
    include_package_data=True,
    zip_safe=False,

    classifiers=[
        'Environment :: Console',
        'Development Status :: 4 - Beta',
        'Intended Audience :: Education',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Education',
    ])
<|endoftext|>


<commit_before>import os
import sys
import re

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
v = open(os.path.join(here, 'beaker', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()

try:
    README = open(os.path.join(here, 'README.rst')).read()
except IOError:
    README = ''

extra = {}
tests_require = ['nose', 'webtest', 'Mock']
pycryptopp = 'pycryptopp>=0.5.12'
if sys.version_info >= (3, 0):
    extra.update(
        use_2to3=True,
    )
else:
    tests_require.append(pycryptopp)

if not sys.platform.startswith('java') and not sys.platform == 'cli':
    tests_require.extend(['SQLALchemy'])
    try:
        import sqlite3
    except ImportError:
        tests_require.append('pysqlite')

setup(name='Beaker',
      version=VERSION,
      description="A Session and Caching library with WSGI Middleware",
      long_description=README,
      classifiers=[
      'Development Status :: 5 - Production/Stable',
      'Environment :: Web Environment',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: BSD License',
      'Programming Language :: Python',
      'Programming Language :: Python :: 2.4',
      'Programming Language :: Python :: 2.5',
      'Programming Language :: Python :: 2.6',
      'Programming Language :: Python :: 2.7',
      'Programming Language :: Python :: 3',
      'Programming Language :: Python :: 3.2',
      'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
      'Topic :: Internet :: WWW/HTTP :: WSGI',
      'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
      ],
      keywords='wsgi myghty session web cache middleware',
      author='Ben Bangert, Mike Bayer, Philip Jenvey',
      author_email='ben@groovie.org, pjenvey@groovie.org',
      url='http://beaker.rtfd.org/',
      license='BSD',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      zip_safe=False,
      install_requires=[],
      extras_require={
          'crypto':[pycryptopp]
      },
      test_suite='nose.collector',
      tests_require=tests_require,
      entry_points="""
          [paste.filter_factory]
          beaker_session = beaker.middleware:session_filter_factory

          [paste.filter_app_factory]
          beaker_session = beaker.middleware:session_filter_app_factory

          [beaker.backends]
          database = beaker.ext.database:DatabaseNamespaceManager
          memcached = beaker.ext.memcached:MemcachedNamespaceManager
          google = beaker.ext.google:GoogleNamespaceManager
          sqla = beaker.ext.sqla:SqlaNamespaceManager
      """,
      **extra
)
<commit_msg>Fix find_packages to exclude all tests<commit_after>import os
import sys
import re

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
v = open(os.path.join(here, 'beaker', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()

try:
    README = open(os.path.join(here, 'README.rst')).read()
except IOError:
    README = ''

extra = {}
tests_require = ['nose', 'webtest', 'Mock']
pycryptopp = 'pycryptopp>=0.5.12'
if sys.version_info >= (3, 0):
    extra.update(
        use_2to3=True,
    )
else:
    tests_require.append(pycryptopp)

if not sys.platform.startswith('java') and not sys.platform == 'cli':
    tests_require.extend(['SQLALchemy'])
    try:
        import sqlite3
    except ImportError:
        tests_require.append('pysqlite')

setup(name='Beaker',
      version=VERSION,
      description="A Session and Caching library with WSGI Middleware",
      long_description=README,
      classifiers=[
      'Development Status :: 5 - Production/Stable',
      'Environment :: Web Environment',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: BSD License',
      'Programming Language :: Python',
      'Programming Language :: Python :: 2.4',
      'Programming Language :: Python :: 2.5',
      'Programming Language :: Python :: 2.6',
      'Programming Language :: Python :: 2.7',
      'Programming Language :: Python :: 3',
      'Programming Language :: Python :: 3.2',
      'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
      'Topic :: Internet :: WWW/HTTP :: WSGI',
      'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
      ],
      keywords='wsgi myghty session web cache middleware',
      author='Ben Bangert, Mike Bayer, Philip Jenvey',
      author_email='ben@groovie.org, pjenvey@groovie.org',
      url='http://beaker.rtfd.org/',
      license='BSD',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests', 'tests.*']),
      zip_safe=False,
      install_requires=[],
      extras_require={
          'crypto':[pycryptopp]
      },
      test_suite='nose.collector',
      tests_require=tests_require,
      entry_points="""
          [paste.filter_factory]
          beaker_session = beaker.middleware:session_filter_factory

          [paste.filter_app_factory]
          beaker_session = beaker.middleware:session_filter_app_factory

          [beaker.backends]
          database = beaker.ext.database:DatabaseNamespaceManager
          memcached = beaker.ext.memcached:MemcachedNamespaceManager
          google = beaker.ext.google:GoogleNamespaceManager
          sqla = beaker.ext.sqla:SqlaNamespaceManager
      """,
      **extra
)
<|endoftext|>


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

import os
from setuptools import setup, find_packages
from setuptools.dist import Distribution
import pkg_resources

add_django_dependency = True
# See issues #50, #57 and #58 for why this is necessary
try:
    pkg_resources.get_distribution('Django')
    add_django_dependency = False
except pkg_resources.DistributionNotFound:
    try:
        import django
        if django.VERSION[0] >= 1 and django.VERSION[1] >= 2 and django.VERSION[2] >= 0:
            add_django_dependency = False
    except ImportError:
        pass

Distribution({
    "setup_requires": add_django_dependency and  ['Django >=1.2.0'] or []
})

import feincms

setup(name='FeinCMS',
    version=feincms.__version__,
    description='Django-based Page CMS and CMS building toolkit.',
    long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
    author='Matthias Kestenholz',
    author_email='mk@feinheit.ch',
    url='http://github.com/feincms/feincms/',
    license='BSD License',
    platforms=['OS Independent'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
    ],
    install_requires=[
        #'Django >=1.2.0' # See http://github.com/feincms/feincms/issues/closed#issue/50
    ],
    requires=[
        #'lxml', # only needed for rich text cleansing
        #'tagging (>0.2.1)', # please use SVN trunk
        'django_mptt (>0.4.0)',
    ],
    packages=[
        'feincms',
        'feincms.admin',
        'feincms.content',
        'feincms.content.application',
        'feincms.content.comments',
        'feincms.content.contactform',
        'feincms.content.file',
        'feincms.content.image',
        'feincms.content.medialibrary',
        'feincms.content.raw',
        'feincms.content.richtext',
        'feincms.content.rss',
        'feincms.content.section',
        'feincms.content.table',
        'feincms.content.template',
        'feincms.content.video',
        'feincms.contrib',
        'feincms.management',
        'feincms.management.commands',
        'feincms.module',
        'feincms.module.blog',
        'feincms.module.blog.extensions',
        'feincms.module.medialibrary',
        'feincms.module.extensions',
        'feincms.module.page',
        'feincms.module.page.extensions',
        'feincms.module.page.templatetags',
        'feincms.templatetags',
        'feincms.utils',
        'feincms.utils.html',
        'feincms.views',
        'feincms.views.cbv',
        'feincms.views.generic',
    ],
    include_package_data=True,
    zip_safe=False,
)
<commit_msg>Add missing package to setup.py<commit_after>#!/usr/bin/env python

import os
from setuptools import setup, find_packages
from setuptools.dist import Distribution
import pkg_resources

add_django_dependency = True
# See issues #50, #57 and #58 for why this is necessary
try:
    pkg_resources.get_distribution('Django')
    add_django_dependency = False
except pkg_resources.DistributionNotFound:
    try:
        import django
        if django.VERSION[0] >= 1 and django.VERSION[1] >= 2 and django.VERSION[2] >= 0:
            add_django_dependency = False
    except ImportError:
        pass

Distribution({
    "setup_requires": add_django_dependency and  ['Django >=1.2.0'] or []
})

import feincms

setup(name='FeinCMS',
    version=feincms.__version__,
    description='Django-based Page CMS and CMS building toolkit.',
    long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
    author='Matthias Kestenholz',
    author_email='mk@feinheit.ch',
    url='http://github.com/feincms/feincms/',
    license='BSD License',
    platforms=['OS Independent'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
    ],
    install_requires=[
        #'Django >=1.2.0' # See http://github.com/feincms/feincms/issues/closed#issue/50
    ],
    requires=[
        #'lxml', # only needed for rich text cleansing
        #'tagging (>0.2.1)', # please use SVN trunk
        'django_mptt (>0.4.0)',
    ],
    packages=[
        'feincms',
        'feincms.admin',
        'feincms.content',
        'feincms.content.application',
        'feincms.content.comments',
        'feincms.content.contactform',
        'feincms.content.file',
        'feincms.content.image',
        'feincms.content.medialibrary',
        'feincms.content.raw',
        'feincms.content.richtext',
        'feincms.content.rss',
        'feincms.content.section',
        'feincms.content.table',
        'feincms.content.template',
        'feincms.content.video',
        'feincms.contrib',
        'feincms.management',
        'feincms.management.commands',
        'feincms.module',
        'feincms.module.blog',
        'feincms.module.blog.extensions',
        'feincms.module.medialibrary',
        'feincms.module.extensions',
        'feincms.module.page',
        'feincms.module.page.extensions',
        'feincms.module.page.templatetags',
        'feincms.templatetags',
        'feincms.utils',
        'feincms.utils.html',
        'feincms.views',
        'feincms.views.cbv',
        'feincms.views.generic',
        'feincms.views.legacy',
    ],
    include_package_data=True,
    zip_safe=False,
)
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages

try:
    f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
    long_description = f.read().strip()
    f.close()
except IOError:
    long_description = None

setup(
    name='django-contrib-comments',
    version='1.7.0.dev1',
    url="https://github.com/django/django-contrib-comments",
    description='The code formerly known as django.contrib.comments.',
    long_description=long_description,
    author='Django Software Foundation',
    author_email='jacob@jacobian.org',
    license='BSD',
    platforms='any',
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    test_suite='tests.runtests.main',
    install_requires=['Django>=1.7']
)
<commit_msg>Added setup classifiers to specify supported Django versions<commit_after>import os
from setuptools import setup, find_packages

try:
    f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
    long_description = f.read().strip()
    f.close()
except IOError:
    long_description = None

setup(
    name='django-contrib-comments',
    version='1.7.0.dev1',
    url="https://github.com/django/django-contrib-comments",
    description='The code formerly known as django.contrib.comments.',
    long_description=long_description,
    author='Django Software Foundation',
    author_email='jacob@jacobian.org',
    license='BSD',
    platforms='any',
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 1.7',
        'Framework :: Django :: 1.8',
        'Framework :: Django :: 1.9',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    test_suite='tests.runtests.main',
    install_requires=['Django>=1.7']
)
<|endoftext|>


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

import sys

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

tests_require = [
    'Django>=1.2,<1.4',
    'django-celery',
    'celery',

    'blinker>=1.1',
    'Flask>=0.8',
    'django-sentry',
    'django-nose',
    'nose',
    'unittest2',
]

install_requires = [
    'simplejson',
]

if sys.version_info[:2] < (2, 5):
    install_requires.append('uuid')

setup(
    name='raven',
    version='1.0',
    author='David Cramer',
    author_email='dcramer@gmail.com',
    url='http://github.com/dcramer/raven',
    description = 'Exception Logging to a Database in Django',
    packages=find_packages(exclude=("tests",)),
    zip_safe=False,
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require={'test': tests_require},
    test_suite='runtests.runtests',
    include_package_data=True,
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<commit_msg>Lower version to 0.1 in case shit breaks<commit_after>#!/usr/bin/env python

import sys

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

tests_require = [
    'Django>=1.2,<1.4',
    'django-celery',
    'celery',

    'blinker>=1.1',
    'Flask>=0.8',
    'django-sentry',
    'django-nose',
    'nose',
    'unittest2',
]

install_requires = [
    'simplejson',
]

if sys.version_info[:2] < (2, 5):
    install_requires.append('uuid')

setup(
    name='raven',
    version='0.1',
    author='David Cramer',
    author_email='dcramer@gmail.com',
    url='http://github.com/dcramer/raven',
    description = 'Exception Logging to a Database in Django',
    packages=find_packages(exclude=("tests",)),
    zip_safe=False,
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require={'test': tests_require},
    test_suite='runtests.runtests',
    include_package_data=True,
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<|endoftext|>


<commit_before>import os
from setuptools import setup

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

setup(
    name="solvent",
    version="1.0",
    author="Shlomo Matichin",
    author_email="shlomomatichin@gmail.com",
    description=(
        "Manage official build product flow, using osmosis as a transport"),
    keywords="git repos repositories scm buildproducts build products",
    url="http://packages.python.org/solvent",
    packages=['solvent'],
    long_description=read('README.md'),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: Utilities",
    ],
)
<commit_msg>fixed setup.py fields<commit_after>import os
from setuptools import setup

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

setup(
    name="solvent",
    version="1.0",
    author="Shlomo Matichin",
    author_email="shlomi@stratoscale.com",
    description=(
        "Manage official build product flow, using osmosis as a transport"),
    keywords="git repos repositories scm buildproducts build products",
    url="http://packages.python.org/solvent",
    packages=['solvent'],
    long_description=read('README.md'),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: Utilities",
    ],
    install_requires=[
        "upseto",
    ],
)
<|endoftext|>


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

NAME = "Rider"
DESCRIPTION = "Python Web Application Framework"
AUTHOR = "Jan Češpivo (http://www.cespivo.cz/)"
AUTHOR_EMAIL = "jan.cespivo@gmail.com"
URL = "http://www.riderframework.com/"
VERSION = '0.1.4a'
REQUIRES = ['falcon', 'six']

PYPY = True
CYTHON = False
try:
    sys.pypy_version_info
except AttributeError:
    PYPY = False

if not PYPY:
    try:
        from Cython.Distutils import build_ext
        CYTHON = True
    except ImportError:
        print('\nWARNING: Cython not installed. '
              'Rider will still work fine, but may run '
              'a bit slower.\n')
        CYTHON = False

if CYTHON:
    ext_names = (
        'routes',
        'api_helpers',
        'http',
        'exceptions',
        'views'
    )

    cmdclass = {'build_ext': build_ext}
    ext_modules = [
        Extension('rider.' + ext, [path.join('rider', ext + '.py')])
        for ext in ext_names]
else:
    cmdclass = {}
    ext_modules = []

setup(
    name=NAME,
    version=VERSION,
    description=DESCRIPTION,
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    license="Apache 2.0",
    url=URL,
    packages=find_packages(),
    include_package_data=True,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    install_requires=REQUIRES,
    cmdclass=cmdclass,
    ext_modules=ext_modules
)
<commit_msg>setup update, minor version update<commit_after># -*- coding: utf-8 -*-
import sys
from os import path
from setuptools import setup, find_packages, Extension

NAME = "Rider"
DESCRIPTION = "Python Web Application Framework"
AUTHOR = "Jan Češpivo (http://www.cespivo.cz/)"
AUTHOR_EMAIL = "jan.cespivo@gmail.com"
URL = "http://www.riderframework.com/"
VERSION = '0.1.5a'
REQUIRES = ['falcon', 'six']

PYPY = True
CYTHON = False
try:
    sys.pypy_version_info
except AttributeError:
    PYPY = False

if not PYPY:
    try:
        from Cython.Distutils import build_ext
        CYTHON = True
    except ImportError:
        print('\nWARNING: Cython not installed. '
              'Rider will still work fine, but may run '
              'a bit slower.\n')
        CYTHON = False

if CYTHON:
    ext_names = (
        'routes',
        'http',
        'exceptions',
        'views'
    )

    cmdclass = {'build_ext': build_ext}
    ext_modules = [
        Extension('rider.' + ext, [path.join('rider', ext + '.py')])
        for ext in ext_names]
else:
    cmdclass = {}
    ext_modules = []

setup(
    name=NAME,
    version=VERSION,
    description=DESCRIPTION,
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    license="Apache 2.0",
    url=URL,
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    install_requires=REQUIRES,
    cmdclass=cmdclass,
    ext_modules=ext_modules
)
<|endoftext|>