<commit_before>from pathlib import Path

from setuptools import setup

def get_advanced_templates():
    template_base = 'aws/templates/advanced/'
    template_names = ['advanced-master', 'advanced-priv-agent', 'advanced-pub-agent', 'infra', 'zen']

    return [template_base + name + '.json' for name in template_names]

# These files are expected source files to the dcos-builder docker.
# They need to match the contents of ./pkgpanda/docker/dcos-builder/*
# exactly otherwise the dcos-builder docker will have a different sha1
# checksum calculated during when the ./release script is run.
# That leads to cached packages hashes being different from what
# is cached in S3 and prevents us from building DC/OS locally.
expected_dcos_builder_files = [
    Path('docker/dcos-builder/Dockerfile'),
    Path('docker/dcos-builder/README.md'),
]
dcos_builder_files = [f.relative_to(Path("./pkgpanda")) for f in Path("./pkgpanda").glob('docker/**/*') if f.is_file()]
if set(expected_dcos_builder_files) != set(dcos_builder_files):
    raise Exception('Expected ./pkgpanda/docker/dcos-builder to contain {} but it had {}'.format(
        expected_dcos_builder_files, dcos_builder_files))

setup(
    name='dcos_image',
    version='0.1',
    description='DC/OS cluster configuration, assembly, and maintenance code',
    url='https://dcos.io',
    author='Mesosphere, Inc.',
    author_email='help@dcos.io',
    license='apache2',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
    ],
    packages=[
        'dcos_installer',
        'gen',
        'gen.build_deploy',
        'pkgpanda',
        'pkgpanda.build',
        'pkgpanda.http',
        'release',
        'release.storage'],
    install_requires=[
        # DCOS-21656 - `botocore`` requires less than 2.7.0 while
        # `analytics-python` package installs 2.7.0 version
        'python-dateutil>=2.1,<2.7.0',
        'aiohttp==0.22.5',
        'analytics-python',
        'coloredlogs',
        'Flask',
        'flask-compress',
        'urllib3==1.24.2',
        'chardet',
        'PyJWT',
        # Pins taken from 'azure==2.0.0rc4'
        'msrest==0.4.17',
        'msrestazure==0.4.15',
        'azure-common==1.1.4',
        'azure-storage==0.32.0',
        'azure-mgmt-network==0.30.0rc4',
        'azure-mgmt-resource==0.30.0rc4',
        'botocore',
        'boto3',
        'checksumdir',
        'coloredlogs',
        'docopt',
        'passlib',
        'py',
        'pytest==5.4.3',
        'pyyaml',
        'responses',
        'requests==2.20.1',
        'retrying',
        'schema',
        'wheel==0.33.1',
        'keyring==9.1',  # FIXME: pin keyring to prevent dbus dep
        'teamcity-messages'],
    entry_points={
        'console_scripts': [
            'release=release:main',
            'pkgpanda=pkgpanda.cli:main',
            'mkpanda=pkgpanda.build.cli:main',
            'dcos_installer=dcos_installer.cli:main',
        ],
    },
    package_data={
        'gen': [
            'ip-detect/aws.sh',
            'ip-detect/aws6.sh',
            'ip-detect/aws_public.sh',
            'ip-detect/azure.ps1',
            'ip-detect/azure.sh',
            'ip-detect/azure6.sh',
            'ip-detect/vagrant.sh',
            'ip-detect/vagrant6.sh',
            'fault-domain-detect/cloud.sh',
            'fault-domain-detect/aws.sh',
            'fault-domain-detect/azure.sh',
            'cloud-config.yaml',
            'cloud-config-windows.yaml',
            'dcos-config.yaml',
            'dcos-config-win.yaml',
            'dcos-config-windows.yaml',
            'dcos-metadata.yaml',
            'dcos-services.yaml',
            'dcos-services-windows.yaml',
            'aws/dcos-config.yaml',
            'aws/templates/aws.html',
            'aws/templates/cloudformation.json',
            'azure/cloud-config.yaml',
            'azure/cloud-config-windows.yaml',
            'azure/azuredeploy-parameters.json',
            'azure/templates/acs.json',
            'azure/templates/azure.html',
            'azure/templates/azuredeploy.json',
            'build_deploy/bash/dcos_generate_config.sh.in',
            'build_deploy/bash/Dockerfile.in',
            'build_deploy/bash/installer_internal_wrapper.in',
            'build_deploy/bash/dcos-launch.spec',
            'build_deploy/powershell/dcos_install.ps1.in',
            'build_deploy/powershell/dcos_node_upgrade.ps1.in',
            'coreos-aws/cloud-config.yaml',
            'coreos/cloud-config.yaml'
        ] + get_advanced_templates(),
        'pkgpanda': [str(f) for f in expected_dcos_builder_files],
    },
    zip_safe=False
)
<commit_msg>Fix Tox by having pytest <6.0.0<commit_after>from pathlib import Path

from setuptools import setup

def get_advanced_templates():
    template_base = 'aws/templates/advanced/'
    template_names = ['advanced-master', 'advanced-priv-agent', 'advanced-pub-agent', 'infra', 'zen']

    return [template_base + name + '.json' for name in template_names]

# These files are expected source files to the dcos-builder docker.
# They need to match the contents of ./pkgpanda/docker/dcos-builder/*
# exactly otherwise the dcos-builder docker will have a different sha1
# checksum calculated during when the ./release script is run.
# That leads to cached packages hashes being different from what
# is cached in S3 and prevents us from building DC/OS locally.
expected_dcos_builder_files = [
    Path('docker/dcos-builder/Dockerfile'),
    Path('docker/dcos-builder/README.md'),
]
dcos_builder_files = [f.relative_to(Path("./pkgpanda")) for f in Path("./pkgpanda").glob('docker/**/*') if f.is_file()]
if set(expected_dcos_builder_files) != set(dcos_builder_files):
    raise Exception('Expected ./pkgpanda/docker/dcos-builder to contain {} but it had {}'.format(
        expected_dcos_builder_files, dcos_builder_files))

setup(
    name='dcos_image',
    version='0.1',
    description='DC/OS cluster configuration, assembly, and maintenance code',
    url='https://dcos.io',
    author='Mesosphere, Inc.',
    author_email='help@dcos.io',
    license='apache2',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
    ],
    packages=[
        'dcos_installer',
        'gen',
        'gen.build_deploy',
        'pkgpanda',
        'pkgpanda.build',
        'pkgpanda.http',
        'release',
        'release.storage'],
    install_requires=[
        # DCOS-21656 - `botocore`` requires less than 2.7.0 while
        # `analytics-python` package installs 2.7.0 version
        'python-dateutil>=2.1,<2.7.0',
        'aiohttp==0.22.5',
        'analytics-python',
        'coloredlogs',
        'Flask',
        'flask-compress',
        'urllib3==1.24.2',
        'chardet',
        'PyJWT',
        # Pins taken from 'azure==2.0.0rc4'
        'msrest==0.4.17',
        'msrestazure==0.4.15',
        'azure-common==1.1.4',
        'azure-storage==0.32.0',
        'azure-mgmt-network==0.30.0rc4',
        'azure-mgmt-resource==0.30.0rc4',
        'botocore',
        'boto3',
        'checksumdir',
        'coloredlogs',
        'docopt',
        'passlib',
        'py',
        'pytest<6.0.0',
        'pyyaml',
        'responses',
        'requests==2.20.1',
        'retrying',
        'schema',
        'wheel==0.33.1',
        'keyring==9.1',  # FIXME: pin keyring to prevent dbus dep
        'teamcity-messages'],
    entry_points={
        'console_scripts': [
            'release=release:main',
            'pkgpanda=pkgpanda.cli:main',
            'mkpanda=pkgpanda.build.cli:main',
            'dcos_installer=dcos_installer.cli:main',
        ],
    },
    package_data={
        'gen': [
            'ip-detect/aws.sh',
            'ip-detect/aws6.sh',
            'ip-detect/aws_public.sh',
            'ip-detect/azure.ps1',
            'ip-detect/azure.sh',
            'ip-detect/azure6.sh',
            'ip-detect/vagrant.sh',
            'ip-detect/vagrant6.sh',
            'fault-domain-detect/cloud.sh',
            'fault-domain-detect/aws.sh',
            'fault-domain-detect/azure.sh',
            'cloud-config.yaml',
            'cloud-config-windows.yaml',
            'dcos-config.yaml',
            'dcos-config-win.yaml',
            'dcos-config-windows.yaml',
            'dcos-metadata.yaml',
            'dcos-services.yaml',
            'dcos-services-windows.yaml',
            'aws/dcos-config.yaml',
            'aws/templates/aws.html',
            'aws/templates/cloudformation.json',
            'azure/cloud-config.yaml',
            'azure/cloud-config-windows.yaml',
            'azure/azuredeploy-parameters.json',
            'azure/templates/acs.json',
            'azure/templates/azure.html',
            'azure/templates/azuredeploy.json',
            'build_deploy/bash/dcos_generate_config.sh.in',
            'build_deploy/bash/Dockerfile.in',
            'build_deploy/bash/installer_internal_wrapper.in',
            'build_deploy/bash/dcos-launch.spec',
            'build_deploy/powershell/dcos_install.ps1.in',
            'build_deploy/powershell/dcos_node_upgrade.ps1.in',
            'coreos-aws/cloud-config.yaml',
            'coreos/cloud-config.yaml'
        ] + get_advanced_templates(),
        'pkgpanda': [str(f) for f in expected_dcos_builder_files],
    },
    zip_safe=False
)
<|endoftext|>


<commit_before>import sys

NAME="opentumblr-client"
VERSION = "0.0.2"
DESCRIPTION = "Cliente de escritorio para tumblr"
AUTHOR = "Jair Gaxiola"
AUTHOR_EMAIL = "jyr.gaxiola@gmail.com"
URL = "http://opentumblr.tumblr.com"
LICENSE = "MIT LICENSE"

if sys.platform == "darwin":
	"""
	This is a setup.py script generated by py2applet

	Usage:
	    python setup.py py2app
	"""

	from setuptools import setup

	APP = ['opentumblr/opentumblr-client.py']
	DATA_FILES = []
	OPTIONS = {'argv_emulation': True}

	setup(
		name=NAME,
		version=VERSION,
		description=DESCRIPTION,
	   	author=AUTHOR,
     	author_email=AUTHOR_EMAIL,
      	url=URL,
      	license=LICENSE,
    	app=APP,
		packages=['poster', 'simplejson'],
	    data_files=DATA_FILES,
	    options={'py2app': OPTIONS},
	    setup_requires=['py2app'],
	)

else:
	"""
		Usage:
			python setup.py py2exe
	"""

	if sys.platform == "win32":
		from distutils.core import setup
		import py2exe

		setup(
			console=['opentumblr/opentumblr-client.py']
		)
	else:
		import os
		from distutils.core import setup
		#from distutils.sysconfig import get_python_lib

		ipath_docs = '/usr/share/doc/opentumblr/'
		ipath_images = '/usr/share/pixmaps/opentumblr/'
		ipath_dashboard = ipath_images+'dashboard/'
		ipath_desktop = '/usr/share/applications/'

		path_images = os.getcwd() + '/opentumblr/images/'
		image_files = [path_images+'audio.png',path_images+'chat.png',path_images+'link.png',path_images+'photo.png',path_images+'quote.png',path_images+'text.png',path_images+'video.png']
		doc_files =['AUTHORS','INSTALL','LICENSE','README','THANKS']
		icon_files = ['opentumblr/images/opentumblr.png','opentumblr/images/opentumblr.xpm']

		if not os.path.isdir(ipath_docs):
			os.mkdir(ipath_docs)

		if not os.path.isdir(ipath_images):
			os.mkdir(ipath_images)
			os.mkdir(ipath_dashboard)

		setup(
			name=NAME,
			version=VERSION,
	      	description=DESCRIPTION,
	      	author=AUTHOR,
	      	author_email=AUTHOR_EMAIL,
	      	url=URL,
	      	license=LICENSE,
	      	scripts=['opentumblr/opentumblr-client.py'],
	      	packages=['opentumblr'],
	      	data_files=[('/usr/share/pixmaps/', icon_files),(ipath_dashboard, image_files),(ipath_docs, doc_files),(ipath_desktop,['opentumblr.desktop'])]
		)<commit_msg>Commit inicial branch windows<commit_after>import sys

NAME="opentumblr-client"
VERSION = "0.0.2"
DESCRIPTION = "Cliente de escritorio para tumblr"
AUTHOR = "Jair Gaxiola"
AUTHOR_EMAIL = "jyr.gaxiola@gmail.com"
URL = "http://opentumblr.tumblr.com"
LICENSE = "MIT LICENSE"

if sys.platform == "darwin":
	"""
	This is a setup.py script generated by py2applet

	Usage:
	    python setup.py py2app
	"""

	from setuptools import setup

	APP = ['opentumblr/opentumblr-client.py']
	DATA_FILES = []
	OPTIONS = {'argv_emulation': True}

	setup(
		name=NAME,
		version=VERSION,
		description=DESCRIPTION,
	   	author=AUTHOR,
     	author_email=AUTHOR_EMAIL,
      	url=URL,
      	license=LICENSE,
    	app=APP,
		packages=['poster', 'simplejson'],
	    data_files=DATA_FILES,
	    options={'py2app': OPTIONS},
	    setup_requires=['py2app'],
	)

else:
	"""
		Usage:
			python setup.py py2exe
	"""

	if sys.platform == "win32":
		from distutils.core import setup
		import py2exe

		setup(
			console=['opentumblr/opentumblr-client.py']
		)
	else:
		import os
		from distutils.core import setup
		#from distutils.sysconfig import get_python_lib

		ipath_docs = '/usr/share/doc/opentumblr/'
		ipath_images = '/usr/share/pixmaps/opentumblr/'
		ipath_dashboard = ipath_images+'dashboard/'
		ipath_desktop = '/usr/share/applications/'

		path_images = os.getcwd() + '/opentumblr/images/'
		image_files = [path_images+'audio.png',path_images+'chat.png',path_images+'link.png',path_images+'photo.png',path_images+'quote.png',path_images+'text.png',path_images+'video.png']
		doc_files =['AUTHORS','INSTALL','LICENSE','README','THANKS']
		icon_files = ['opentumblr/images/opentumblr.png','opentumblr/images/opentumblr.xpm']

		if not os.path.isdir(ipath_docs):
			os.mkdir(ipath_docs)

		if not os.path.isdir(ipath_images):
			os.mkdir(ipath_images)
			os.mkdir(ipath_dashboard)

		setup(
			name=NAME,
			version=VERSION,
	      	description=DESCRIPTION,
	      	author=AUTHOR,
	      	author_email=AUTHOR_EMAIL,
	      	url=URL,
	      	license=LICENSE,
	      	scripts=['opentumblr/opentumblr-client.py'],
	      	packages=['opentumblr'],
	      	data_files=[('/usr/share/pixmaps/', icon_files),(ipath_dashboard, image_files),(ipath_docs, doc_files),(ipath_desktop,['opentumblr.desktop'])]
		)<|endoftext|>


<commit_before># Copyright (c) 2015 Florian Wagner
#
# This file is part of XL-mHG.
#
# XL-mHG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License, Version 3,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import sys
import os

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

root = 'xlmhg'
description = 'XL-mHG: A Nonparametric Test For Enrichment in Ranked Binary Lists.'
version = '1.1rc1'

try:
	import numpy as np # numpy is required
except ImportError:
	print 'You must install NumPy before installing XL-mHG!'
	sys.exit(1)

try:
	from Cython.Distutils import build_ext
except ImportError:
	print 'You must install Cython before installing XL-mHG!'
	sys.exit(1)

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

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

# extensions
ext_modules = []
ext_modules.append(Extension(root + '.' + 'xlmhg_cython', sources= [root + os.sep + 'xlmhg_cython.pyx'], include_dirs = [np.get_include()]))

setup(
    name='xlmhg',

    version=version,

    description=description,
    long_description=long_description,

    url='https://github.com/flo-compbio/xlmhg',

    author='Florian Wagner',
    author_email='florian.wagner@duke.edu',

    license='GPLv3',

    # see https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Bio-Informatics',

        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',

        'Programming Language :: Python :: 2.7',
    ],

    keywords='statistics nonparametric enrichment test ranked binary lists',

    #packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
    packages=['xlmhg'],

	# extensions
	ext_modules = ext_modules,
	cmdclass = {'build_ext': build_ext},

	#libraries = [],

    install_requires=['numpy','cython'],

	# development dependencies
    #extras_require={},

	# data
    #package_data={}

	# data outside package
    #data_files=[],

	# executable scripts
    entry_points={
        #'console_scripts': []
    },
)
<commit_msg>update to 1.1rc2<commit_after># Copyright (c) 2015 Florian Wagner
#
# This file is part of XL-mHG.
#
# XL-mHG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License, Version 3,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import sys
import os

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

root = 'xlmhg'
description = 'XL-mHG: A Nonparametric Test For Enrichment in Ranked Binary Lists.'
version = '1.1rc2'

try:
	import numpy as np # numpy is required
except ImportError:
	print 'You must install NumPy before installing XL-mHG!'
	sys.exit(1)

try:
	from Cython.Distutils import build_ext
except ImportError:
	print 'You must install Cython before installing XL-mHG!'
	sys.exit(1)

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

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

# extensions
ext_modules = []
ext_modules.append(Extension(root + '.' + 'xlmhg_cython', sources= [root + os.sep + 'xlmhg_cython.pyx'], include_dirs = [np.get_include()]))

setup(
    name='xlmhg',

    version=version,

    description=description,
    long_description=long_description,

    url='https://github.com/flo-compbio/xlmhg',

    author='Florian Wagner',
    author_email='florian.wagner@duke.edu',

    license='GPLv3',

    # see https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Bio-Informatics',

        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',

        'Programming Language :: Python :: 2.7',
    ],

    keywords='statistics nonparametric enrichment test ranked binary lists',

    #packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
    packages=['xlmhg'],

	# extensions
	ext_modules = ext_modules,
	cmdclass = {'build_ext': build_ext},

	#libraries = [],

    install_requires=['numpy','cython'],

	# development dependencies
    #extras_require={},

	# data
    #package_data={}

	# data outside package
    #data_files=[],

	# executable scripts
    entry_points={
        #'console_scripts': []
    },
)
<|endoftext|>


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

# dleyna-control
#
# Copyright (C) 2012 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU Lesser General Public License,
# version 2.1, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
# for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# Mark Ryan <mark.d.ryan@intel.com>
#

from distutils.core import setup
from distutils.command.install_data import install_data

class MSDInstallData(install_data):

    def finalize_options(self):
        self.set_undefined_options('install', ('install_lib', 'install_dir'))
        install_data.finalize_options(self)

setup(name = "msd",
      version = "0.3.0",
      description = "Test DMP to demonstrate features of dleyna-server",
      author = "Richard S. Bell",
      author_email = "richard.s.bell@intel.com",
      url = "https://01.org/dleyna/about",
      license = "http://www.gnu.org/licenses/lgpl-2.1.html",
      scripts = ['src/dleyna-control.py'],
      package_dir={'msd': 'src/msd'},
      packages = [ "msd" ],
      data_files = [ ("msd" , ["AUTHORS", "README", "ChangeLog", "COPYING"]) ],
      cmdclass = { 'install_data' : MSDInstallData })
<commit_msg>[Configuration] Post-release version bump<commit_after>#!/usr/bin/env python

# dleyna-control
#
# Copyright (C) 2012 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU Lesser General Public License,
# version 2.1, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
# for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# Mark Ryan <mark.d.ryan@intel.com>
#

from distutils.core import setup
from distutils.command.install_data import install_data

class MSDInstallData(install_data):

    def finalize_options(self):
        self.set_undefined_options('install', ('install_lib', 'install_dir'))
        install_data.finalize_options(self)

setup(name = "msd",
      version = "0.4.0",
      description = "Test DMP to demonstrate features of dleyna-server",
      author = "Richard S. Bell",
      author_email = "richard.s.bell@intel.com",
      url = "https://01.org/dleyna/about",
      license = "http://www.gnu.org/licenses/lgpl-2.1.html",
      scripts = ['src/dleyna-control.py'],
      package_dir={'msd': 'src/msd'},
      packages = [ "msd" ],
      data_files = [ ("msd" , ["AUTHORS", "README", "ChangeLog", "COPYING"]) ],
      cmdclass = { 'install_data' : MSDInstallData })
<|endoftext|>


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

from __future__ import with_statement

import sys
assert sys.version_info[0:2] >= (2, 7), "Python 2.7 or higher is required"

import os
from os import walk
from os.path import isfile, join, commonprefix
from setuptools import setup

# Version requirements explanations:
#   pyfarm.core: certain enums which are only present in later versions,
#   configuration loader changes
#   sqlalchemy: Post-1.x release there were a few regressions that broke tests
install_requires = [
    "pyfarm.core>=0.9.1",
    "sqlalchemy>=0.9.9,!=1.0.0,!=1.0.1,!=1.0.2",
    "flask",
    "flask-login",
    "flask-sqlalchemy",
    "itsdangerous",
    "blinker",
    "voluptuous",
    "celery",
    "redis",
    "requests!=2.4.0",
    "netaddr",
    "lockfile",
    "wtforms"]

if "READTHEDOCS" in os.environ:
    install_requires += ["sphinxcontrib-httpdomain", "sphinx"]

if isfile("README.rst"):
    with open("README.rst", "r") as readme:
        long_description = readme.read()
else:
    long_description = ""

def get_package_data(*package_data_roots):
    package_root = commonprefix(package_data_roots)

    output = []
    for top in package_data_roots:
        for root, dirs, files in walk(top):
            for filename in files:
                output.append(join(root, filename).split(package_root)[-1][1:])

    return output

setup(
    name="pyfarm.master",
    version="0.8.6",
    packages=[
        "pyfarm",
        "pyfarm.master",
        "pyfarm.master.api",
        "pyfarm.master.user_interface",
        "pyfarm.models",
        "pyfarm.models.core",
        "pyfarm.scheduler"],
    namespace_packages=["pyfarm"],
    include_package_data=True,
    package_data={
        "pyfarm.master": get_package_data(
            join("pyfarm", "master", "etc"),
            join("pyfarm", "master", "static"),
            join("pyfarm", "master", "templates"),
            join("pyfarm", "master", "api", "templates"),
            join("pyfarm", "master", "api", "static")
        ),
        "pyfarm.models": get_package_data(
            join("pyfarm", "models", "etc")
        ),
        "pyfarm.scheduler": get_package_data(
            join("pyfarm", "scheduler", "etc")
        )
    },
    data_files=[
        ("etc/pyfarm", [
            "pyfarm/master/etc/master.yml",
            "pyfarm/models/etc/models.yml",
            "pyfarm/scheduler/etc/scheduler.yml"
        ])
    ],
    entry_points={
        "console_scripts": [
            "pyfarm-master = pyfarm.master.entrypoints:run_master",
            "pyfarm-tables = pyfarm.master.entrypoints:tables"]},
    install_requires=install_requires,
    url="https://github.com/pyfarm/pyfarm-master",
    license="Apache v2.0",
    author="Oliver Palmer",
    author_email="development@pyfarm.net",
    description="Sub-library which contains the code necessary to "
                "communicate with the database via a REST api.",
    long_description=long_description,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Topic :: System :: Distributed Computing"])
<commit_msg>Fix installing data files in setup.py<commit_after># No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
# Copyright 2015 Ambient Entertainment GmbH & Co. KG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import with_statement

import sys
assert sys.version_info[0:2] >= (2, 7), "Python 2.7 or higher is required"

import os
from os import walk
from os.path import isfile, join, relpath
from setuptools import setup

# Version requirements explanations:
#   pyfarm.core: certain enums which are only present in later versions,
#   configuration loader changes
#   sqlalchemy: Post-1.x release there were a few regressions that broke tests
install_requires = [
    "pyfarm.core>=0.9.1",
    "sqlalchemy>=0.9.9,!=1.0.0,!=1.0.1,!=1.0.2",
    "flask",
    "flask-login",
    "flask-sqlalchemy",
    "itsdangerous",
    "blinker",
    "voluptuous",
    "celery",
    "redis",
    "requests!=2.4.0",
    "netaddr",
    "lockfile",
    "wtforms"]

if "READTHEDOCS" in os.environ:
    install_requires += ["sphinxcontrib-httpdomain", "sphinx"]

if isfile("README.rst"):
    with open("README.rst", "r") as readme:
        long_description = readme.read()
else:
    long_description = ""

def get_package_data(package_root, *package_data_roots):
    output = []
    for top in package_data_roots:
        for root, dirs, files in walk(top):
            for filename in files:
                output.append(relpath(join(root, filename), package_root))

    return output

setup(
    name="pyfarm.master",
    version="0.8.6",
    packages=[
        "pyfarm",
        "pyfarm.master",
        "pyfarm.master.api",
        "pyfarm.master.user_interface",
        "pyfarm.models",
        "pyfarm.models.core",
        "pyfarm.scheduler"],
    namespace_packages=["pyfarm"],
    include_package_data=True,
    package_data={
        "pyfarm.master": get_package_data(
            join("pyfarm", "master"),
            join("pyfarm", "master", "etc"),
            join("pyfarm", "master", "static"),
            join("pyfarm", "master", "templates")
        ),
        "pyfarm.models": get_package_data(
            join("pyfarm", "models"),
            join("pyfarm", "models", "etc")
        ),
        "pyfarm.scheduler": get_package_data(
            join("pyfarm", "scheduler"),
            join("pyfarm", "scheduler", "etc")
        )
    },
    entry_points={
        "console_scripts": [
            "pyfarm-master = pyfarm.master.entrypoints:run_master",
            "pyfarm-tables = pyfarm.master.entrypoints:tables"]},
    install_requires=install_requires,
    url="https://github.com/pyfarm/pyfarm-master",
    license="Apache v2.0",
    author="Oliver Palmer",
    author_email="development@pyfarm.net",
    description="Sub-library which contains the code necessary to "
                "communicate with the database via a REST api.",
    long_description=long_description,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Topic :: System :: Distributed Computing"])
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages

def read_file(filename):
    """Read a file into a string"""
    path = os.path.abspath(os.path.dirname(__file__))
    filepath = os.path.join(path, filename)
    try:
        return open(filepath).read()
    except IOError:
        return ''

install_requires = [
    'chardet',
    'tablib',
    'six',
]

setup(
    name='django-multi_import',
    version='0.1.10',
    author='Simon Bartlett',
    author_email='simon@securitycompass.com',
    packages=find_packages(),
    include_package_data=True,
    url='https://github.com/sdelements/django-multi-importer',
    license='MIT',
    description='Import/export multi Django resources together atomically',
    classifiers=[
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Framework :: Django',
        'Development Status :: 4 - Beta',
        'Operating System :: OS Independent',
    ],
    long_description=read_file('README.rst'),
    test_suite="runtests.runtests",
    zip_safe=False,
    requires=['django (>=1.8)', 'djangorestframework (>=3.0)'],
    install_requires=install_requires
)
<commit_msg>Bumped version to 0.2.0<commit_after>import os
from setuptools import setup, find_packages

def read_file(filename):
    """Read a file into a string"""
    path = os.path.abspath(os.path.dirname(__file__))
    filepath = os.path.join(path, filename)
    try:
        return open(filepath).read()
    except IOError:
        return ''

install_requires = [
    'chardet',
    'tablib',
    'six',
]

setup(
    name='django-multi_import',
    version='0.2.0',
    author='Simon Bartlett',
    author_email='simon@securitycompass.com',
    packages=find_packages(),
    include_package_data=True,
    url='https://github.com/sdelements/django-multi-importer',
    license='MIT',
    description='Import/export multi Django resources together atomically',
    classifiers=[
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Framework :: Django',
        'Development Status :: 4 - Beta',
        'Operating System :: OS Independent',
    ],
    long_description=read_file('README.rst'),
    test_suite="runtests.runtests",
    zip_safe=False,
    requires=['django (>=1.8)', 'djangorestframework (>=3.0)'],
    install_requires=install_requires
)
<|endoftext|>


<commit_before>from setuptools import setup, Extension, find_packages

setup(
  name = 'RoundCreator',
  packages = ['RoundCreator'],
  version = '1.1',
  description = 'A tool that creates a programming contest folder structure',
  long_description=open('README.txt', 'r').read(),
  author = 'Sergio Rodriguez Guasch',
  author_email = 'sergio.r.g@yandex.com',
  classifiers= [
    'Development Status :: 5 - Production/Stable',
    'Environment :: Console',
    'Intended Audience :: Developers',
    'Intended Audience :: Education',
    'License :: OSI Approved :: MIT License',
    'Natural Language :: English',
    'Operating System :: OS Independent',
    'Programming Language :: C++',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3.0',
    'Topic :: Education',
    'Topic :: Scientific/Engineering',
    'Topic :: Software Development',
    'Topic :: Utilities'
  ],
  entry_points = {
    'console_scripts': [
      'RoundCreator=RoundCreator.RoundCreator:main',
      'roundcreator=RoundCreator.RoundCreator:main',
      'round-creator=RoundCreator.RoundCreator:main'
    ]
  },
  url = 'https://github.com/srgrr/RoundCreator'
)
<commit_msg>removed extra commands<commit_after>from setuptools import setup, Extension, find_packages

setup(
  name = 'RoundCreator',
  packages = ['RoundCreator'],
  version = '1.1',
  description = 'A tool that creates a programming contest folder structure',
  long_description=open('README.txt', 'r').read(),
  author = 'Sergio Rodriguez Guasch',
  author_email = 'sergio.r.g@yandex.com',
  classifiers= [
    'Development Status :: 5 - Production/Stable',
    'Environment :: Console',
    'Intended Audience :: Developers',
    'Intended Audience :: Education',
    'License :: OSI Approved :: MIT License',
    'Natural Language :: English',
    'Operating System :: OS Independent',
    'Programming Language :: C++',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3.0',
    'Topic :: Education',
    'Topic :: Scientific/Engineering',
    'Topic :: Software Development',
    'Topic :: Utilities'
  ],
  entry_points = {
    'console_scripts': [
      'RoundCreator=RoundCreator.RoundCreator:main'
    ]
  },
  url = 'https://github.com/srgrr/RoundCreator'
)
<|endoftext|>


<commit_before>#! /usr/bin/python

"""
codewords - Simple python library to generate "code phrases" based on
provided lists of words and delimiters.

This project uses bumpversion so prior to a release you should run:

  $ bumpversion (major|minor|patch)

depending on which version you are wanting to increment.  See
https://github.com/peritus/bumpversion for more information and options.

"""

from setuptools import setup, find_packages
from distutils.core import Command
import codewords

class PylintCommand(Command):
    description = 'Executes pylint on the package specified.'
    user_options = [('package=', 'p', "the package to be pylint'ed")]

    def initialize_options(self):
        self.package = None

    def finalize_options(self):
        pass

    def run(self):
        if not self.package:
            exit("pylint command requires package option to be specified")
        from pylint.lint import Run
        Run(['--output-format=parseable', self.package])

setup(
    name="codewords",
    version=codewords.get_version(),
    author="Louis Zirkel III",
    author_email="zzzirk@gmail.com",
    description='CodeWords python lbrary',
    url='https://stash.movenetworks.com/projects/OPSTOOLS/',
    license="bsd3",
    keywords="codewords",
    test_suite="tests",

    cmdclass={'pylint': PylintCommand},
    # test_suite="nose.collector",

    entry_points={
        'console_scripts': [
            'codewords=codewords.__main__:main',
        ]
    },

    packages=find_packages(),

    install_requires=[
    ],

    setup_requires=[
    ],

    tests_require=[
        "mock==2.0.0",
    ],

)
<commit_msg>Added project classifiers to setup.<commit_after>#! /usr/bin/python

"""
codewords - Simple python library to generate "code phrases" based on
provided lists of words and delimiters.

This project uses bumpversion so prior to a release you should run:

  $ bumpversion (major|minor|patch)

depending on which version you are wanting to increment.  See
https://github.com/peritus/bumpversion for more information and options.

"""

from setuptools import setup, find_packages
from distutils.core import Command
import codewords

class PylintCommand(Command):
    description = 'Executes pylint on the package specified.'
    user_options = [('package=', 'p', "the package to be pylint'ed")]

    def initialize_options(self):
        self.package = None

    def finalize_options(self):
        pass

    def run(self):
        if not self.package:
            exit("pylint command requires package option to be specified")
        from pylint.lint import Run
        Run(['--output-format=parseable', self.package])

setup(
    name="codewords",
    version=codewords.get_version(),
    author="Louis Zirkel III",
    author_email="zzzirk@gmail.com",
    description='CodeWords python lbrary',
    url='https://stash.movenetworks.com/projects/OPSTOOLS/',
    license="bsd3",
    keywords="codewords",
    test_suite="tests",

    cmdclass={'pylint': PylintCommand},
    # test_suite="nose.collector",

    entry_points={
        'console_scripts': [
            'codewords=codewords.__main__:main',
        ]
    },

    packages=find_packages(),

    install_requires=[
    ],

    setup_requires=[
    ],

    tests_require=[
        "mock==2.0.0",
    ],

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Security',
        'Topic :: System',
        'Topic :: Utilities',
    ],

)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import os

version = '0.1.3'

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

setup(name='django-lfs',
      version=version,
      description='LFS - Lightning Fast Shop',
      long_description=README,
      classifiers=[
          'Environment :: Web Environment',
          'Framework :: Django',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
      ],
      keywords='django e-commerce online-shop',
      author='Kai Diefenbach',
      author_email='kai.diefenbach@iqpp.de',
      url='http://www.getlfs.com',
      license='BSD',
      packages=find_packages(exclude=['ez_setup']),
      include_package_data=True,
      zip_safe=False,
      install_requires=[
        'setuptools',
        'django-lfstheme',
        'django-portlets',
        'django-reviews',
      ],
      )
<commit_msg>Added more dependancies. Increased version.<commit_after>from setuptools import setup, find_packages
import os

version = '0.1.4'

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

setup(name='django-lfs',
      version=version,
      description='LFS - Lightning Fast Shop',
      long_description=README,
      classifiers=[
          'Environment :: Web Environment',
          'Framework :: Django',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
      ],
      keywords='django e-commerce online-shop',
      author='Kai Diefenbach',
      author_email='kai.diefenbach@iqpp.de',
      url='http://www.getlfs.com',
      license='BSD',
      packages=find_packages(exclude=['ez_setup']),
      include_package_data=True,
      zip_safe=False,
      install_requires=[
        'setuptools',
        'django-lfstheme',
        'django-portlets',
        'django-pagination',
        'django-reviews',
        'django-tagging',
      ],
      )
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='Py-Authorize',
    version='1.2.2.0',
    author='Vincent Catalano',
    author_email='vincent@vincentcatlano.com',
    url='https://github.com/vcatalano/py-authorize',
    download_url='',
    description="A full-featured Python API for Authorize.net's AIM, CIM, ARB and Reporting APIs.",
    long_description=__doc__,
    license='MIT',
    install_requires=[
        'colander',
    ],
    packages=[
        'authorize',
        'authorize.apis',
    ],
    classifiers=[
        'Environment :: Console',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'License :: OSI Approved :: MIT License',
        'Topic :: Office/Business :: Financial',
        'Topic :: Internet :: WWW/HTTP',
    ],
)
<commit_msg>Bump version number<commit_after>from setuptools import setup

setup(
    name='Py-Authorize',
    version='1.2.2.1',
    author='Vincent Catalano',
    author_email='vincent@vincentcatlano.com',
    url='https://github.com/vcatalano/py-authorize',
    download_url='',
    description="A full-featured Python API for Authorize.net's AIM, CIM, ARB and Reporting APIs.",
    long_description=__doc__,
    license='MIT',
    install_requires=[
        'colander',
    ],
    packages=[
        'authorize',
        'authorize.apis',
    ],
    classifiers=[
        'Environment :: Console',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'License :: OSI Approved :: MIT License',
        'Topic :: Office/Business :: Financial',
        'Topic :: Internet :: WWW/HTTP',
    ],
)
<|endoftext|>


<commit_before>import versioneer
import os
from setuptools import setup

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

setup(
    name='audiorename',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    author='Josef Friedrich',
    author_email='josef@friedrich.rocks',
    description=('Rename audio files from metadata tags.'),
    license='MIT',
    packages=['audiorename'],
    keywords='audio',
    url='https://github.com/Josef-Friedrich/audiorename',
    install_requires=[
        'phrydy>=1.1.3',
        'tmep',
        'ansicolor',
        'six',
        'musicbrainzngs',
    ],
    scripts=['bin/audiorenamer'],
    long_description=read('README.rst'),
    classifiers=[
        'Development Status :: 3 - Alpha',
    ],
    zip_safe=False, )
<commit_msg>Update phrydy<commit_after>import versioneer
import os
from setuptools import setup

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

setup(
    name='audiorename',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    author='Josef Friedrich',
    author_email='josef@friedrich.rocks',
    description=('Rename audio files from metadata tags.'),
    license='MIT',
    packages=['audiorename'],
    keywords='audio',
    url='https://github.com/Josef-Friedrich/audiorename',
    install_requires=[
        'phrydy>=1.1.4',
        'tmep',
        'ansicolor',
        'six',
        'musicbrainzngs',
    ],
    scripts=['bin/audiorenamer'],
    long_description=read('README.rst'),
    classifiers=[
        'Development Status :: 3 - Alpha',
    ],
    zip_safe=False, )
<|endoftext|>


<commit_before>"""Classes to set up and install rpm-py-installer."""
import os
import sys
from distutils.cmd import Command

import setuptools
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info
from setuptools.command.install import install

from rpm_py_installer.version import VERSION

def install_rpm_py():
    """Install RPM Python binding."""
    python_path = sys.executable
    cmd = '{0} install.py'.format(python_path)
    exit_status = os.system(cmd)
    if exit_status != 0:
        raise Exception('Command failed: {0}'.format(cmd))

class InstallCommand(install):
    """A class for "pip install".

    Handled by "pip install rpm-py-installer",
    when the package is published to PyPI as a source distribution (sdist).
    """

    def run(self):
        """Run install process."""
        install.run(self)
        install_rpm_py()

class DevelopCommand(develop):
    """A class for setuptools development mode.

    Handled by "pip install -e".
    """

    def run(self):
        """Run install process with development mode."""
        develop.run(self)
        install_rpm_py()

class EggInfoCommand(egg_info):
    """A class for egg-info.

    Handled by "pip install .".
    """

    def run(self):
        """Run egg_info process."""
        egg_info.run(self)
        install_rpm_py()

class BdistWheelCommand(Command):
    """A class for "pip bdist_wheel".

    Raise exception to always disable wheel cache.

    See https://github.com/pypa/pip/issues/4720
    """

    user_options = []

    def initialize_options(self):
        """Initilize options.

        Just extend the super class's abstract method.
        """
        pass

    def finalize_options(self):
        """Finalize options.

        Just extend the super class's abstract method.
        """
        pass

    def run(self):
        """Run bdist_wheel process.

        It raises error to make the method fail intentionally.
        """
        raise Exception('bdist_wheel is not supported')

setuptools.setup(
    name='rpm-py-installer',
    version=VERSION,
    license='MIT',
    description='RPM Python binding Installer',
    long_description='''
A installer for RPM Python binding module.
See "Home Page" on GitHub for detail.
''',
    author='Jun Aruga',
    author_email='jaruga@redhat.com',
    url='https://github.com/junaruga/rpm-py-installer',
    packages=[
        'rpm_py_installer',
    ],
    # Keep install_requires empty to run install.py directly.
    install_requires=[],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        '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.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: System :: Installation/Setup',
    ],
    scripts=[
        'install.py',
    ],
    cmdclass={
      'install': InstallCommand,
      'develop': DevelopCommand,
      'egg_info': EggInfoCommand,
      'bdist_wheel': BdistWheelCommand,
    },
)
<commit_msg>Fix typo at long description in setup.py. (#154)<commit_after>"""Classes to set up and install rpm-py-installer."""
import os
import sys
from distutils.cmd import Command

import setuptools
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info
from setuptools.command.install import install

from rpm_py_installer.version import VERSION

def install_rpm_py():
    """Install RPM Python binding."""
    python_path = sys.executable
    cmd = '{0} install.py'.format(python_path)
    exit_status = os.system(cmd)
    if exit_status != 0:
        raise Exception('Command failed: {0}'.format(cmd))

class InstallCommand(install):
    """A class for "pip install".

    Handled by "pip install rpm-py-installer",
    when the package is published to PyPI as a source distribution (sdist).
    """

    def run(self):
        """Run install process."""
        install.run(self)
        install_rpm_py()

class DevelopCommand(develop):
    """A class for setuptools development mode.

    Handled by "pip install -e".
    """

    def run(self):
        """Run install process with development mode."""
        develop.run(self)
        install_rpm_py()

class EggInfoCommand(egg_info):
    """A class for egg-info.

    Handled by "pip install .".
    """

    def run(self):
        """Run egg_info process."""
        egg_info.run(self)
        install_rpm_py()

class BdistWheelCommand(Command):
    """A class for "pip bdist_wheel".

    Raise exception to always disable wheel cache.

    See https://github.com/pypa/pip/issues/4720
    """

    user_options = []

    def initialize_options(self):
        """Initilize options.

        Just extend the super class's abstract method.
        """
        pass

    def finalize_options(self):
        """Finalize options.

        Just extend the super class's abstract method.
        """
        pass

    def run(self):
        """Run bdist_wheel process.

        It raises error to make the method fail intentionally.
        """
        raise Exception('bdist_wheel is not supported')

setuptools.setup(
    name='rpm-py-installer',
    version=VERSION,
    license='MIT',
    description='RPM Python binding Installer',
    long_description='''
An installer for RPM Python binding module.
See "Home Page" on GitHub for detail.
''',
    author='Jun Aruga',
    author_email='jaruga@redhat.com',
    url='https://github.com/junaruga/rpm-py-installer',
    packages=[
        'rpm_py_installer',
    ],
    # Keep install_requires empty to run install.py directly.
    install_requires=[],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        '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.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: System :: Installation/Setup',
    ],
    scripts=[
        'install.py',
    ],
    cmdclass={
      'install': InstallCommand,
      'develop': DevelopCommand,
      'egg_info': EggInfoCommand,
      'bdist_wheel': BdistWheelCommand,
    },
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='vectortween',
    version='0.0.1',
    packages=['vectortween'],
    url='',
    license='MIT',
    author='stefaan himpe',
    author_email='stefaan.himpe@gmail.com',
    description='some tweening for use with libraries like gizeh and moviepy',
    requires=['pytweening', 'sympy', 'numpy', 'scipy']
)
<commit_msg>enforce python 3<commit_after>from distutils.core import setup
import sys

if sys.version_info[0] < 3:
    sys.exit("Sorry. Python 2 is currently not supported.")

setup(
    name='vectortween',
    version='0.0.1',
    packages=['vectortween'],
    url='',
    license='MIT',
    author='stefaan himpe',
    author_email='stefaan.himpe@gmail.com',
    description='vector animation library with tweening',
    requires=['pytweening', 'sympy', 'numpy', 'scipy']
)
<|endoftext|>


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

import os
import sys

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

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

license = """
MIT License
Copyright (c) 2017 Nolan Gilley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

setup(name='python-ecobee-api',
      version='0.2.13',
      description='Python API for talking to Ecobee thermostats',
      url='https://github.com/nkgilley/python-ecobee-api',
      author='Nolan Gilley',
      author_email='nkgilley@gmail.com',
      license='MIT',
      install_requires=['requests>=2.25'],
      packages=['pyecobee'],
      zip_safe=True)
<commit_msg>0.2.14<commit_after>#!/usr/bin/env python

import os
import sys

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

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

license = """
MIT License
Copyright (c) 2017 Nolan Gilley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

setup(name='python-ecobee-api',
      version='0.2.14',
      description='Python API for talking to Ecobee thermostats',
      url='https://github.com/nkgilley/python-ecobee-api',
      author='Nolan Gilley',
      author_email='nkgilley@gmail.com',
      license='MIT',
      install_requires=['requests>=2.25'],
      packages=['pyecobee'],
      zip_safe=True)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2017 D. de Vries

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This file contains the setup code for the OpenLEGO package.
"""
from setuptools import setup

version = '0.0.0dev1'

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

setup(
    name='openlego',
    version=version,
    description='An Open-source link between the AGILE project and the OpenMDAO framework',
    long_description=readme(),
    classifiers=[
        'Development Status :: 2 - Pre-Alpha'
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering',
    ],
    keywords='optimization agile multidisciplinary kadmos openmdao engineering xml cpacs',
    url='https://github.com/daniel-de-vries/OpenLEGO',
    # TODO: download_url='https://github.com/some/git/repo/dist/' + version + '.tar.gzip',
    author='Daniël de Vries',
    author_email='danieldevries6@gmail.com',
    license='Apache Software License',
    packages=['openlego'],
    install_requires=[
        'kadmos=0.7',
        'openmdao==1.7.3',
        'lxml',
        'numpy',
        'matplotlib'
    ],
    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
    include_package_data=True,
    zip_safe=False
)
<commit_msg>Updated openmdao version to 2.0.0 and bumped version number to 1.0.0dev1 in setup.py.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2017 D. de Vries

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This file contains the setup code for the OpenLEGO package.
"""
from setuptools import setup

version = '1.0.0dev1'

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

setup(
    name='openlego',
    version=version,
    description='An Open-source link between the AGILE project and the OpenMDAO framework',
    long_description=readme(),
    classifiers=[
        'Development Status :: 2 - Pre-Alpha'
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering',
    ],
    keywords='optimization agile multidisciplinary kadmos openmdao engineering xml cpacs',
    url='https://github.com/daniel-de-vries/OpenLEGO',
    # TODO: download_url='https://github.com/some/git/repo/dist/' + version + '.tar.gzip',
    author='Daniël de Vries',
    author_email='danieldevries6@gmail.com',
    license='Apache Software License',
    packages=['openlego'],
    install_requires=[
        'kadmos=0.7',
        'openmdao==2.0.0',
        'lxml',
        'numpy',
        'matplotlib'
    ],
    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
    include_package_data=True,
    zip_safe=False
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import os

with open(os.path.join(".", "gmql", "resources", "version"), "r") as f_ver:
    version = f_ver.read().strip()

with open(os.path.join(".", "gmql", "resources", "github_url"), "r") as f_ver:
    github_url = f_ver.read().strip()

setup(name='gmql',
      version=version,
      description='Python library for GMQL',
      long_description="PyGMQL is a python module that enables the user "
                       "to perform operation on genomic data in a scalable way.",
      url=github_url,
      author='Luca Nanni, Mustafa Anil Tuncel',
      author_email='lucananni93dev@gmail.com',
      maintainer="Mustafa Anil Tuncel",
      maintainer_email="tuncel.manil@gmail.com",
      license='MIT',
      download_url='{}/tarball/{}'.format(github_url, version),
      packages=find_packages(),
      install_requires=['pandas', 'tqdm', 'numpy', 'py4j',
                        'psutil', 'requests', 'requests-toolbelt','sklearn',
                        'pyclustering','matplotlib','scipy','wordcloud', 'fancyimpute'],
      classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Science/Research',
            'Topic :: Scientific/Engineering :: Bio-Informatics',
             'Topic :: Scientific/Engineering :: Information Analysis',
            'Programming Language :: Python :: 3'
      ],
      keywords="genomics big data pandas python",
      python_requires='>=3',
      include_package_data=True,
      zip_safe=False)
<commit_msg>fixed pep8<commit_after>from setuptools import setup, find_packages
import os

with open(os.path.join(".", "gmql", "resources", "version"), "r") as f_ver:
    version = f_ver.read().strip()

with open(os.path.join(".", "gmql", "resources", "github_url"), "r") as f_ver:
    github_url = f_ver.read().strip()

setup(name='gmql',
      version=version,
      description='Python library for GMQL',
      long_description="PyGMQL is a python module that enables the user "
                       "to perform operation on genomic data in a scalable way.",
      url=github_url,
      author='Luca Nanni, Mustafa Anil Tuncel',
      author_email='lucananni93dev@gmail.com',
      maintainer="Mustafa Anil Tuncel",
      maintainer_email="tuncel.manil@gmail.com",
      license='MIT',
      download_url='{}/tarball/{}'.format(github_url, version),
      packages=find_packages(),
      install_requires=['pandas', 'tqdm', 'numpy', 'py4j',
                        'psutil', 'requests', 'requests-toolbelt', 'sklearn',
                        'pyclustering','matplotlib','scipy','wordcloud', 'fancyimpute'],
      classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Science/Research',
            'Topic :: Scientific/Engineering :: Bio-Informatics',
             'Topic :: Scientific/Engineering :: Information Analysis',
            'Programming Language :: Python :: 3'
      ],
      keywords="genomics big data pandas python",
      python_requires='>=3',
      include_package_data=True,
      zip_safe=False)
<|endoftext|>


<commit_before>#!/usr/bin/env python
import io
import os
import sys
from fnmatch import fnmatchcase

from setuptools import convert_path, find_packages, setup

# Provided as an attribute, so you can append to these instead
# of replicating them:
standard_exclude = ["*.py", "*.pyc", "*~", ".*", "*.bak", "Makefile"]
standard_exclude_directories = [
    ".*", "CVS", "_darcs", "./build",
    "./dist", "EGG-INFO", "*.egg-info",
    "./example"
]

# Copied from paste/util/finddata.py
def find_package_data(where=".", package="", exclude=standard_exclude,
                      exclude_directories=standard_exclude_directories,
                      only_in_packages=True, show_ignored=False):
    """
    Return a dictionary suitable for use in ``package_data``
    in a distutils ``setup.py`` file.

    The dictionary looks like::

        {"package": [files]}

    Where ``files`` is a list of all the files in that package that
    don't match anything in ``exclude``.

    If ``only_in_packages`` is true, then top-level directories that
    are not packages won't be included (but directories under packages
    will).

    Directories matching any pattern in ``exclude_directories`` will
    be ignored; by default directories with leading ``.``, ``CVS``,
    and ``_darcs`` will be ignored.

    If ``show_ignored`` is true, then all the files that aren't
    included in package data are shown on stderr (for debugging
    purposes).

    Note patterns use wildcards, or can be exact paths (including
    leading ``./``), and all searching is case-insensitive.
    """

    out = {}
    stack = [(convert_path(where), "", package, only_in_packages)]
    while stack:
        where, prefix, package, only_in_packages = stack.pop(0)
        for name in os.listdir(where):
            fn = os.path.join(where, name)
            if os.path.isdir(fn):
                bad_name = False
                for pattern in exclude_directories:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "Directory %s ignored by pattern %s"
                                % (fn, pattern))
                        break
                if bad_name:
                    continue
                if (os.path.isfile(os.path.join(fn, "__init__.py"))
                        and not prefix):
                    if not package:
                        new_package = name
                    else:
                        new_package = package + "." + name
                    stack.append((fn, "", new_package, False))
                else:
                    stack.append((fn, prefix + name + "/", package,
                                  only_in_packages))
            elif package or not only_in_packages:
                # is a file
                bad_name = False
                for pattern in exclude:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "File %s ignored by pattern %s"
                                % (fn, pattern))
                        break
                if bad_name:
                    continue
                out.setdefault(package, []).append(prefix+name)
    return out

excluded_directories = standard_exclude_directories

package_data = find_package_data(exclude_directories=excluded_directories)

test_requirements = []

IS_PY2 = sys.version_info[0] < 3

if IS_PY2:
    openid_package = 'python-openid >= 2.2.5'
    test_requirements.append('mock >= 1.0.1')
else:
    openid_package = 'python3-openid >= 3.0.8'

long_description = io.open('README.rst', encoding='utf-8').read()

# Dynamically calculate the version based on allauth.VERSION.
version = __import__('allauth').__version__

METADATA = dict(
    name='django-allauth',
    version=version,
    author='Raymond Penners',
    author_email='raymond.penners@intenct.nl',
    description='Integrated set of Django applications addressing'
    ' authentication, registration, account management as well as'
    ' 3rd party (social) account authentication.',
    long_description=long_description,
    url='http://github.com/pennersr/django-allauth',
    keywords='django auth account social openid twitter facebook oauth'
    ' registration',
    tests_require=test_requirements,
    install_requires=['Django >= 1.10',
                      openid_package,
                      'requests-oauthlib >= 0.3.0',
                      "requests"],
    include_package_data=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Environment :: Web Environment',
        'Topic :: Internet',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Framework :: Django',
        'Framework :: Django :: 1.11',
        'Framework :: Django :: 2.0',
    ],
    packages=find_packages(exclude=['example']),
    package_data=package_data,
)

if __name__ == '__main__':
    setup(**METADATA)
<commit_msg>fix: Require Django 1.11<commit_after>#!/usr/bin/env python
import io
import os
import sys
from fnmatch import fnmatchcase

from setuptools import convert_path, find_packages, setup

# Provided as an attribute, so you can append to these instead
# of replicating them:
standard_exclude = ["*.py", "*.pyc", "*~", ".*", "*.bak", "Makefile"]
standard_exclude_directories = [
    ".*", "CVS", "_darcs", "./build",
    "./dist", "EGG-INFO", "*.egg-info",
    "./example"
]

# Copied from paste/util/finddata.py
def find_package_data(where=".", package="", exclude=standard_exclude,
                      exclude_directories=standard_exclude_directories,
                      only_in_packages=True, show_ignored=False):
    """
    Return a dictionary suitable for use in ``package_data``
    in a distutils ``setup.py`` file.

    The dictionary looks like::

        {"package": [files]}

    Where ``files`` is a list of all the files in that package that
    don't match anything in ``exclude``.

    If ``only_in_packages`` is true, then top-level directories that
    are not packages won't be included (but directories under packages
    will).

    Directories matching any pattern in ``exclude_directories`` will
    be ignored; by default directories with leading ``.``, ``CVS``,
    and ``_darcs`` will be ignored.

    If ``show_ignored`` is true, then all the files that aren't
    included in package data are shown on stderr (for debugging
    purposes).

    Note patterns use wildcards, or can be exact paths (including
    leading ``./``), and all searching is case-insensitive.
    """

    out = {}
    stack = [(convert_path(where), "", package, only_in_packages)]
    while stack:
        where, prefix, package, only_in_packages = stack.pop(0)
        for name in os.listdir(where):
            fn = os.path.join(where, name)
            if os.path.isdir(fn):
                bad_name = False
                for pattern in exclude_directories:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "Directory %s ignored by pattern %s"
                                % (fn, pattern))
                        break
                if bad_name:
                    continue
                if (os.path.isfile(os.path.join(fn, "__init__.py"))
                        and not prefix):
                    if not package:
                        new_package = name
                    else:
                        new_package = package + "." + name
                    stack.append((fn, "", new_package, False))
                else:
                    stack.append((fn, prefix + name + "/", package,
                                  only_in_packages))
            elif package or not only_in_packages:
                # is a file
                bad_name = False
                for pattern in exclude:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "File %s ignored by pattern %s"
                                % (fn, pattern))
                        break
                if bad_name:
                    continue
                out.setdefault(package, []).append(prefix+name)
    return out

excluded_directories = standard_exclude_directories

package_data = find_package_data(exclude_directories=excluded_directories)

test_requirements = []

IS_PY2 = sys.version_info[0] < 3

if IS_PY2:
    openid_package = 'python-openid >= 2.2.5'
    test_requirements.append('mock >= 1.0.1')
else:
    openid_package = 'python3-openid >= 3.0.8'

long_description = io.open('README.rst', encoding='utf-8').read()

# Dynamically calculate the version based on allauth.VERSION.
version = __import__('allauth').__version__

METADATA = dict(
    name='django-allauth',
    version=version,
    author='Raymond Penners',
    author_email='raymond.penners@intenct.nl',
    description='Integrated set of Django applications addressing'
    ' authentication, registration, account management as well as'
    ' 3rd party (social) account authentication.',
    long_description=long_description,
    url='http://github.com/pennersr/django-allauth',
    keywords='django auth account social openid twitter facebook oauth'
    ' registration',
    tests_require=test_requirements,
    install_requires=['Django >= 1.11',
                      openid_package,
                      'requests-oauthlib >= 0.3.0',
                      "requests"],
    include_package_data=True,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Environment :: Web Environment',
        'Topic :: Internet',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Framework :: Django',
        'Framework :: Django :: 1.11',
        'Framework :: Django :: 2.0',
    ],
    packages=find_packages(exclude=['example']),
    package_data=package_data,
)

if __name__ == '__main__':
    setup(**METADATA)
<|endoftext|>


<commit_before>import os
from setuptools import setup
from distutils.core import Command

class TestCommand(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        from django.conf import settings
        settings.configure(
            DATABASES={
                'default': {
                    'NAME': 'test.db',
                    'TEST_NAME': 'test.db',
                    'ENGINE': 'django.db.backends.sqlite3'
                }
            },
            INSTALLED_APPS = (
                'django.contrib.auth',
                'django.contrib.contenttypes',
                'django.contrib.sessions',
                'django.contrib.staticfiles',
                'compressor',
                'greeking',
                'bigbuild',
            ),
            TEMPLATES=[
                {
                    'BACKEND': 'django.template.backends.django.DjangoTemplates',
                    'DIRS': [],
                    'APP_DIRS': False,
                    'OPTIONS': {},
                },
            ],
            BASE_DIR=os.path.dirname(__file__),
            BAKERY_GZIP=False,
            BAKERY_VIEWS=(
                'bigbuild.views.IndexRedirectView',
                'bigbuild.views.PageListView',
                'bigbuild.views.PageDetailView',
                'bigbuild.views.Static404View',
                'bigbuild.views.RobotsView',
                'bigbuild.sitemaps.SitemapView',
                'bigbuild.sitemaps.GoogleNewsSitemapView',
                'bigbuild.feeds.LatestPages',
            ),
            STATIC_ROOT="./.static",
            STATIC_URL = "/static/",
            COMPRESS_ENABLED = True,
            COMPRESS_JS_COMPRESSOR = "bigbuild.compressors.SimpleJsCompressor",
            COMPRESS_CSS_COMPRESSOR = "bigbuild.compressors.SimpleCssCompressor",
            STATICFILES_FINDERS = (
                'compressor.finders.CompressorFinder',
            ),
            COMPRESS_CSS_FILTERS = [
                'compressor.filters.cssmin.rCSSMinFilter'
            ],
            COMPRESS_JS_FILTERS = [
                'compressor.filters.jsmin.JSMinFilter',
            ],
            COMPRESS_PRECOMPILERS = (
                ('text/coffeescript', 'coffee --compile --stdio'),
                ('text/less', 'lessc {infile} {outfile}'),
                ('text/x-sass', 'sass {infile} {outfile}'),
            ),
            COMPRESS_CACHEABLE_PRECOMPILERS = (),
            USE_TZ = True,
            ROOT_URLCONF = 'bigbuild.urls',
            BIGBUILD_GIT_BRANCH = os.environ.get("BIGBUILD_GIT_BRANCH", None),
            BIGBUILD_BRANCH_BUILD = True,
        )
        from django.core.management import call_command
        import django
        django.setup()
        call_command('test', 'bigbuild')

setup(
    name='django-bigbuild',
    version='0.4.3',
    description="The open-source engine that powers bigbuilder, the Los Angeles Times Data Desk's \
system for publishing standalone pages",
    author='The Los Angeles Times Data Desk',
    author_email='datadesk@latimes.com',
    url='http://www.github.com/datadesk/django-bigbuild/',
    zip_safe=False,
    packages=(
        'bigbuild',
        'bigbuild.management',
        'bigbuild.management.commands',
        'bigbuild.models',
        'bigbuild.templatetags',
    ),
    include_package_data=True,
    license="MIT",
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Framework :: Django',
        'Framework :: Django :: 1.10',
        'Framework :: Django :: 1.11',
        'License :: OSI Approved :: MIT License',
    ],
    install_requires=[
        'python-frontmatter==0.2.1',
        'django-bakery>=0.8.11',
        'validictory>=1.0.1',
        'django-compressor>=2.0',
        'greeking>=2.2.0',
        'GitPython>=2.0.8',
        'python-dateutil>=2.6.0',
        'pytz',
        'six',
    ],
    cmdclass={'test': TestCommand}
)
<commit_msg>Classifier not accepted yet<commit_after>import os
from setuptools import setup
from distutils.core import Command

class TestCommand(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        from django.conf import settings
        settings.configure(
            DATABASES={
                'default': {
                    'NAME': 'test.db',
                    'TEST_NAME': 'test.db',
                    'ENGINE': 'django.db.backends.sqlite3'
                }
            },
            INSTALLED_APPS = (
                'django.contrib.auth',
                'django.contrib.contenttypes',
                'django.contrib.sessions',
                'django.contrib.staticfiles',
                'compressor',
                'greeking',
                'bigbuild',
            ),
            TEMPLATES=[
                {
                    'BACKEND': 'django.template.backends.django.DjangoTemplates',
                    'DIRS': [],
                    'APP_DIRS': False,
                    'OPTIONS': {},
                },
            ],
            BASE_DIR=os.path.dirname(__file__),
            BAKERY_GZIP=False,
            BAKERY_VIEWS=(
                'bigbuild.views.IndexRedirectView',
                'bigbuild.views.PageListView',
                'bigbuild.views.PageDetailView',
                'bigbuild.views.Static404View',
                'bigbuild.views.RobotsView',
                'bigbuild.sitemaps.SitemapView',
                'bigbuild.sitemaps.GoogleNewsSitemapView',
                'bigbuild.feeds.LatestPages',
            ),
            STATIC_ROOT="./.static",
            STATIC_URL = "/static/",
            COMPRESS_ENABLED = True,
            COMPRESS_JS_COMPRESSOR = "bigbuild.compressors.SimpleJsCompressor",
            COMPRESS_CSS_COMPRESSOR = "bigbuild.compressors.SimpleCssCompressor",
            STATICFILES_FINDERS = (
                'compressor.finders.CompressorFinder',
            ),
            COMPRESS_CSS_FILTERS = [
                'compressor.filters.cssmin.rCSSMinFilter'
            ],
            COMPRESS_JS_FILTERS = [
                'compressor.filters.jsmin.JSMinFilter',
            ],
            COMPRESS_PRECOMPILERS = (
                ('text/coffeescript', 'coffee --compile --stdio'),
                ('text/less', 'lessc {infile} {outfile}'),
                ('text/x-sass', 'sass {infile} {outfile}'),
            ),
            COMPRESS_CACHEABLE_PRECOMPILERS = (),
            USE_TZ = True,
            ROOT_URLCONF = 'bigbuild.urls',
            BIGBUILD_GIT_BRANCH = os.environ.get("BIGBUILD_GIT_BRANCH", None),
            BIGBUILD_BRANCH_BUILD = True,
        )
        from django.core.management import call_command
        import django
        django.setup()
        call_command('test', 'bigbuild')

setup(
    name='django-bigbuild',
    version='0.4.3',
    description="The open-source engine that powers bigbuilder, the Los Angeles Times Data Desk's \
system for publishing standalone pages",
    author='The Los Angeles Times Data Desk',
    author_email='datadesk@latimes.com',
    url='http://www.github.com/datadesk/django-bigbuild/',
    zip_safe=False,
    packages=(
        'bigbuild',
        'bigbuild.management',
        'bigbuild.management.commands',
        'bigbuild.models',
        'bigbuild.templatetags',
    ),
    include_package_data=True,
    license="MIT",
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Framework :: Django',
        'Framework :: Django :: 1.10',
        'License :: OSI Approved :: MIT License',
    ],
    install_requires=[
        'python-frontmatter==0.2.1',
        'django-bakery>=0.8.11',
        'validictory>=1.0.1',
        'django-compressor>=2.0',
        'greeking>=2.2.0',
        'GitPython>=2.0.8',
        'python-dateutil>=2.6.0',
        'pytz',
        'six',
    ],
    cmdclass={'test': TestCommand}
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='fencepy',
    version='0.1',
    description='Standardized fencing off of python virtual environments on a per-project basis',
    author='Adam Kaufman',
    author_email='kaufman.blue@gmail.com',
    url='https://github.com/ajk8/fencepy',
    license='MIT',
    packages=['fencepy'],
    entry_points={'console_scripts': ['fencepy = fencepy:fence']},
    test_suite='tests',
    install_requires=[
        'virtualenv>=1.11'
    ],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development'
    ],
    keywords='virtualenv development'
)
<commit_msg>added download url<commit_after>from setuptools import setup

setup(
    name='fencepy',
    version='0.1',
    description='Standardized fencing off of python virtual environments on a per-project basis',
    author='Adam Kaufman',
    author_email='kaufman.blue@gmail.com',
    url='https://github.com/ajk8/fencepy',
    download_url='https://github.com/ajk8/fencepy/tarball/0.1',
    license='MIT',
    packages=['fencepy'],
    entry_points={'console_scripts': ['fencepy = fencepy:fence']},
    test_suite='tests',
    install_requires=[
        'virtualenv>=1.11'
    ],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development'
    ],
    keywords='virtualenv development'
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='BladeAndSoul.py',
    version='0.0.2a3',
    packages=['BladeAndSoul'],
    package_data = {
        'BladeAndSoul': ['data/*']},
    license='MIT',
    author='Fuzen.py',
    description='Python3.5 Unofficial BladeAndSoul API',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    keywords='Unofficial BladeAndSoul API',
    install_requires=['aiohttp', 'bs4', 'lxml', 'PyYaml'],
    zip_safe=False
)
<commit_msg>Updated Version<commit_after>from setuptools import setup

setup(
    name='BladeAndSoul.py',
    version='0.0.3a1',
    packages=['BladeAndSoul'],
    package_data = {
        'BladeAndSoul': ['data/*']},
    license='MIT',
    author='Fuzen.py',
    description='Python3.5 Unofficial BladeAndSoul API',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    keywords='Unofficial BladeAndSoul API',
    install_requires=['aiohttp', 'bs4', 'lxml', 'PyYaml'],
    zip_safe=False
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

version = '0.4.16'

requires = [
    'six >= 1.11.0',
    'setuptools >= 2.2',
    'eduid-userdb >= 0.4.8',
]

# Flavours
webapp_requires = [
    'Flask>=1.1,<1.2',
    'pysaml2 >= 4.9.0',  # version sync with dashboard to avoid pip catastrophes
    'redis >= 2.10.5',
    'pwgen == 0.4',
    'vccs_client >= 0.4.5',
    'PyNaCl >= 1.0.1',
    'python-etcd >= 0.4.5',
    'PyYAML >= 3.11',
    'bleach>=2.0.0',
    'marshmallow>=2.15.1,==2.*',
    'Flask-Mail == 0.9.1',
    'eduid_msg >= 0.10.9',
    'eduid-am >= 0.7.3',
    'statsd==3.2.1',
    'zxcvbn>=4.4.27,<5.0',
    'python-u2flib-server>=5.0.0',
    'fido2==0.6.0',
]
webapp_extras = webapp_requires + []

idp_requires = [
    'pysaml2 >= 4.9.0',
    'redis >= 2.10.5',
    'vccs_client >= 0.4.2',
    'PyNaCl >= 1.0.1',
    'statsd==3.2.1',
    'bleach>=2.0.0',
    'Flask>=0.12.2,==0.12.*',
    'pwgen == 0.4',
    'python-etcd >= 0.4.5',
]
idp_extras = idp_requires + []

worker_requires = [
    'python-etcd >= 0.4.5',
    'PyNaCl >= 1.0.1',
    ]
worker_extras = worker_requires + []
api_extras = worker_extras

# No dependecies flavor, let the importing application handle dependencies
nodeps_requires = requires

test_requires = [
    'mock == 1.0.1',
]
testing_extras = test_requires + webapp_extras + [
    'pytest>=5.2.0'
    'pytest-cov>=2.7.1'
]

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

setup(name='eduid-common',
      version=version,
      description="Common code for eduID applications",
      long_description=long_description,
      classifiers=[
          "Programming Language :: Python",
      ],
      keywords='',
      author='SUNET',
      author_email='',
      url='https://github.com/SUNET/',
      license='bsd',
      packages=find_packages('src'),
      package_dir={'': 'src'},
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      tests_require=test_requires,
      extras_require={
          'testing': testing_extras,
          'webapp': webapp_extras,
          'idp': idp_extras,
          'worker': worker_extras,
          'api': api_extras,
          'nodeps': []
      },
      entry_points="""
      """,
      )
<commit_msg>PyYAML is now needed in all flavors<commit_after>from setuptools import setup, find_packages

version = '0.4.16'

requires = [
    'six >= 1.11.0',
    'setuptools >= 2.2',
    'eduid-userdb >= 0.4.8',
]

# Flavours
webapp_requires = [
    'Flask>=1.1,<1.2',
    'pysaml2 >= 4.9.0',  # version sync with dashboard to avoid pip catastrophes
    'redis >= 2.10.5',
    'pwgen == 0.4',
    'vccs_client >= 0.4.5',
    'PyNaCl >= 1.0.1',
    'python-etcd >= 0.4.5',
    'PyYAML >= 3.11',
    'bleach>=2.0.0',
    'marshmallow>=2.15.1,==2.*',
    'Flask-Mail == 0.9.1',
    'eduid_msg >= 0.10.9',
    'eduid-am >= 0.7.3',
    'statsd==3.2.1',
    'zxcvbn>=4.4.27,<5.0',
    'python-u2flib-server>=5.0.0',
    'fido2==0.6.0',
]
webapp_extras = webapp_requires + []

idp_requires = [
    'pysaml2 >= 4.9.0',
    'redis >= 2.10.5',
    'vccs_client >= 0.4.2',
    'PyNaCl >= 1.0.1',
    'PyYAML >= 3.11',
    'statsd==3.2.1',
    'bleach>=2.0.0',
    'Flask>=0.12.2,==0.12.*',
    'pwgen == 0.4',
    'python-etcd >= 0.4.5',
]
idp_extras = idp_requires + []

worker_requires = [
    'python-etcd >= 0.4.5',
    'PyNaCl >= 1.0.1',
    'PyYAML >= 3.11',
    ]
worker_extras = worker_requires + []
api_extras = worker_extras

# No dependecies flavor, let the importing application handle dependencies
nodeps_requires = requires

test_requires = [
    'mock == 1.0.1',
]
testing_extras = test_requires + webapp_extras + [
    'pytest>=5.2.0'
    'pytest-cov>=2.7.1'
]

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

setup(name='eduid-common',
      version=version,
      description="Common code for eduID applications",
      long_description=long_description,
      classifiers=[
          "Programming Language :: Python",
      ],
      keywords='',
      author='SUNET',
      author_email='',
      url='https://github.com/SUNET/',
      license='bsd',
      packages=find_packages('src'),
      package_dir={'': 'src'},
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      tests_require=test_requires,
      extras_require={
          'testing': testing_extras,
          'webapp': webapp_extras,
          'idp': idp_extras,
          'worker': worker_extras,
          'api': api_extras,
          'nodeps': []
      },
      entry_points="""
      """,
      )
<|endoftext|>


<commit_before># This file is part of geometriki.
#
# geometriki is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# geometriki is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with geometriki, in a file named COPYING. If not,
# see <http://www.gnu.org/licenses/>.
"""A collaborative JavaScript development environment.

**geometriki** is a **wiki** in which each page can be processed either
for people to read (HTML, PDF) or for machines to process (**JSON** or
**JavaScript**).  As a result, it is effectively a collaborative
development environment for JavaScript applications, especially those
that can be useful without frequent updates to server-side data.
"""
try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

setup(
    name='geometriki',
    version='0.1.9',
    description='A collaborative JavaScript development environment.',
    author='Joshua Tacoma',
    author_email='joshua@yellowseed.org',
    url='http://gitorious.org/geometriki',
    install_requires=[
        "Pylons>=1.0",
        "python-openid",
        "docutils",
    ],
    setup_requires=["PasteScript>=1.6.3"],
    packages=find_packages(exclude=['ez_setup']),
    include_package_data=True,
    test_suite='nose.collector',
    package_data={'geometriki': ['i18n/*/LC_MESSAGES/*.mo']},
    #message_extractors={'geometriki': [
    #        ('**.py', 'python', None),
    #        ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
    #        ('public/**', 'ignore', None)]},
    zip_safe=False,
    paster_plugins=['PasteScript', 'Pylons'],
    entry_points="""
    [paste.app_factory]
    main = geometriki.config.middleware:make_app

    [paste.app_install]
    main = pylons.util:PylonsInstaller
    """,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: Web Environment",
        "Framework :: Pylons",
        "Intended Audience :: Other Audience",
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],
    long_description='\n'.join(__doc__.split('\n')[2:]),
)
<commit_msg>version 0.10: improved security and stability, still very few interesting features.<commit_after># This file is part of geometriki.
#
# geometriki is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# geometriki is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with geometriki, in a file named COPYING. If not,
# see <http://www.gnu.org/licenses/>.
"""A collaborative JavaScript development environment.

**geometriki** is a **wiki** in which each page can be processed either
for people to read (HTML, PDF) or for machines to process (**JSON** or
**JavaScript**).  As a result, it is effectively a collaborative
development environment for JavaScript applications, especially those
that can be useful without frequent updates to server-side data.
"""
try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

setup(
    name='geometriki',
    version='0.1.10',
    description='A collaborative JavaScript development environment.',
    author='Joshua Tacoma',
    author_email='joshua@yellowseed.org',
    url='http://gitorious.org/geometriki',
    install_requires=[
        "Pylons>=1.0",
        "python-openid",
        "docutils",
    ],
    setup_requires=["PasteScript>=1.6.3"],
    packages=find_packages(exclude=['ez_setup']),
    include_package_data=True,
    test_suite='nose.collector',
    package_data={'geometriki': ['i18n/*/LC_MESSAGES/*.mo']},
    #message_extractors={'geometriki': [
    #        ('**.py', 'python', None),
    #        ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
    #        ('public/**', 'ignore', None)]},
    zip_safe=False,
    paster_plugins=['PasteScript', 'Pylons'],
    entry_points="""
    [paste.app_factory]
    main = geometriki.config.middleware:make_app

    [paste.app_install]
    main = pylons.util:PylonsInstaller
    """,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Environment :: Web Environment",
        "Framework :: Pylons",
        "Intended Audience :: Other Audience",
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],
    long_description='\n'.join(__doc__.split('\n')[2:]),
)
<|endoftext|>


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

# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools

setuptools.setup(
    setup_requires=['pbr'],
    pbr=True)
<commit_msg>Updated from global requirements<commit_after>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools

# In python < 2.7.4, a lazy loading of package `pbr` will break
# setuptools if some other modules registered functions in `atexit`.
# solution from: http://bugs.python.org/issue15881#msg170215
try:
    import multiprocessing  # noqa
except ImportError:
    pass

setuptools.setup(
    setup_requires=['pbr'],
    pbr=True)
<|endoftext|>