<commit_before>#!/usr/bin/env python
"""
Installation script:

To release a new version to PyPi:
- Ensure the version is correctly set in oscar.__init__.py
- Run: make release
"""
import os
import re
import sys

from setuptools import find_packages, setup

PROJECT_DIR = os.path.dirname(__file__)

sys.path.append(os.path.join(PROJECT_DIR, 'src'))
from oscar import get_version  # noqa isort:skip

install_requires = [
    'django>=3.1,<3.3',
    # PIL is required for image fields, Pillow is the "friendly" PIL fork
    'pillow>=6.0',
    # We use the ModelFormSetView from django-extra-views for the basket page
    'django-extra-views>=0.13,<0.14',
    # Search support
    'django-haystack>=3.0b1',
    # Treebeard is used for categories
    'django-treebeard>=4.3.0',
    # Babel is used for currency formatting
    'Babel>=1.0,<3.0',
    # For manipulating search URLs
    'purl>=0.7',
    # For phone number field
    'phonenumbers',
    'django-phonenumber-field>=4.0.0,<7.0.0',
    # Used for oscar.test.factories
    'factory-boy>=3.0,<3.3',
    # Used for automatically building larger HTML tables
    'django-tables2>=2.3,<2.4',
    # Used for manipulating form field attributes in templates (eg: add
    # a css class)
    'django-widget-tweaks>=1.4.1',
]

sorl_thumbnail_version = 'sorl-thumbnail>=12.6,<12.7'
easy_thumbnails_version = 'easy-thumbnails>=2.7,<2.8'

docs_requires = [
    'Sphinx>=4.2,<4.3',
    'sphinxcontrib-napoleon==0.7',
    'sphinxcontrib-spelling==7.2.1',
    'sphinx_rtd_theme==1.0.0',
    'sphinx-issues==1.2.0',
    sorl_thumbnail_version,
    easy_thumbnails_version,
]

test_requires = [
    'WebTest>=2.0,<2.1',
    'coverage>=5.4,<5.5',
    'django-webtest>=1.9,<1.10',
    'psycopg2-binary>=2.8,<2.9',
    'pytest-django>=3.7,<3.9',
    'pytest-xdist>=2.2,<3',
    'tox>=3.21,<4',
    'freezegun>=1.1,<2',
    sorl_thumbnail_version,
    easy_thumbnails_version,
]

with open(os.path.join(PROJECT_DIR, 'README.rst')) as fh:
    long_description = re.sub(
        '^.. start-no-pypi.*^.. end-no-pypi', '', fh.read(), flags=re.M | re.S)

setup(
    name='django-oscar',
    version=get_version(),
    url='https://github.com/django-oscar/django-oscar',
    author="David Winterbottom",
    author_email="david.winterbottom@gmail.com",
    description="A domain-driven e-commerce framework for Django",
    long_description=long_description,
    keywords="E-commerce, Django, domain-driven",
    license='BSD',
    platforms=['linux'],
    package_dir={'': 'src'},
    packages=find_packages('src'),
    include_package_data=True,
    python_requires='>=3.7',
    install_requires=install_requires,
    extras_require={
        'docs': docs_requires,
        'test': test_requires,
        'sorl-thumbnail': [sorl_thumbnail_version],
        'easy-thumbnails': [easy_thumbnails_version],
    },
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 3.1',
        'Framework :: Django :: 3.2',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Topic :: Software Development :: Libraries :: Application Frameworks']
)

# Show contributing instructions if being installed in 'develop' mode
if len(sys.argv) > 1 and sys.argv[1] == 'develop':
    docs_url = 'https://django-oscar.readthedocs.io/en/latest/internals/contributing/index.html'
    mailing_list = 'django-oscar@googlegroups.com'
    mailing_list_url = 'https://groups.google.com/forum/?fromgroups#!forum/django-oscar'
    twitter_url = 'https://twitter.com/django_oscar'
    msg = (
        "You're installing Oscar in 'develop' mode so I presume you're thinking\n"
        "of contributing:\n\n"
        "(a) That's brilliant - thank you for your time\n"
        "(b) If you have any questions, please use the mailing list:\n    %s\n"
        "    %s\n"
        "(c) There are more detailed contributing guidelines that you should "
        "have a look at:\n    %s\n"
        "(d) Consider following @django_oscar on Twitter to stay up-to-date\n"
        "    %s\n\nHappy hacking!") % (mailing_list, mailing_list_url,
                                       docs_url, twitter_url)
    line = '=' * 82
    print(("\n%s\n%s\n%s" % (line, msg, line)))
<commit_msg>Bump max version of django-extra-views to 0.15 (#3937)<commit_after>#!/usr/bin/env python
"""
Installation script:

To release a new version to PyPi:
- Ensure the version is correctly set in oscar.__init__.py
- Run: make release
"""
import os
import re
import sys

from setuptools import find_packages, setup

PROJECT_DIR = os.path.dirname(__file__)

sys.path.append(os.path.join(PROJECT_DIR, 'src'))
from oscar import get_version  # noqa isort:skip

install_requires = [
    'django>=3.1,<3.3',
    # PIL is required for image fields, Pillow is the "friendly" PIL fork
    'pillow>=6.0',
    # We use the ModelFormSetView from django-extra-views for the basket page
    'django-extra-views>=0.13,<0.15',
    # Search support
    'django-haystack>=3.0b1',
    # Treebeard is used for categories
    'django-treebeard>=4.3.0',
    # Babel is used for currency formatting
    'Babel>=1.0,<3.0',
    # For manipulating search URLs
    'purl>=0.7',
    # For phone number field
    'phonenumbers',
    'django-phonenumber-field>=4.0.0,<7.0.0',
    # Used for oscar.test.factories
    'factory-boy>=3.0,<3.3',
    # Used for automatically building larger HTML tables
    'django-tables2>=2.3,<2.4',
    # Used for manipulating form field attributes in templates (eg: add
    # a css class)
    'django-widget-tweaks>=1.4.1',
]

sorl_thumbnail_version = 'sorl-thumbnail>=12.6,<12.7'
easy_thumbnails_version = 'easy-thumbnails>=2.7,<2.8'

docs_requires = [
    'Sphinx>=4.2,<4.3',
    'sphinxcontrib-napoleon==0.7',
    'sphinxcontrib-spelling==7.2.1',
    'sphinx_rtd_theme==1.0.0',
    'sphinx-issues==1.2.0',
    sorl_thumbnail_version,
    easy_thumbnails_version,
]

test_requires = [
    'WebTest>=2.0,<2.1',
    'coverage>=5.4,<5.5',
    'django-webtest>=1.9,<1.10',
    'psycopg2-binary>=2.8,<2.9',
    'pytest-django>=3.7,<3.9',
    'pytest-xdist>=2.2,<3',
    'tox>=3.21,<4',
    'freezegun>=1.1,<2',
    sorl_thumbnail_version,
    easy_thumbnails_version,
]

with open(os.path.join(PROJECT_DIR, 'README.rst')) as fh:
    long_description = re.sub(
        '^.. start-no-pypi.*^.. end-no-pypi', '', fh.read(), flags=re.M | re.S)

setup(
    name='django-oscar',
    version=get_version(),
    url='https://github.com/django-oscar/django-oscar',
    author="David Winterbottom",
    author_email="david.winterbottom@gmail.com",
    description="A domain-driven e-commerce framework for Django",
    long_description=long_description,
    keywords="E-commerce, Django, domain-driven",
    license='BSD',
    platforms=['linux'],
    package_dir={'': 'src'},
    packages=find_packages('src'),
    include_package_data=True,
    python_requires='>=3.7',
    install_requires=install_requires,
    extras_require={
        'docs': docs_requires,
        'test': test_requires,
        'sorl-thumbnail': [sorl_thumbnail_version],
        'easy-thumbnails': [easy_thumbnails_version],
    },
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 3.1',
        'Framework :: Django :: 3.2',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Topic :: Software Development :: Libraries :: Application Frameworks']
)

# Show contributing instructions if being installed in 'develop' mode
if len(sys.argv) > 1 and sys.argv[1] == 'develop':
    docs_url = 'https://django-oscar.readthedocs.io/en/latest/internals/contributing/index.html'
    mailing_list = 'django-oscar@googlegroups.com'
    mailing_list_url = 'https://groups.google.com/forum/?fromgroups#!forum/django-oscar'
    twitter_url = 'https://twitter.com/django_oscar'
    msg = (
        "You're installing Oscar in 'develop' mode so I presume you're thinking\n"
        "of contributing:\n\n"
        "(a) That's brilliant - thank you for your time\n"
        "(b) If you have any questions, please use the mailing list:\n    %s\n"
        "    %s\n"
        "(c) There are more detailed contributing guidelines that you should "
        "have a look at:\n    %s\n"
        "(d) Consider following @django_oscar on Twitter to stay up-to-date\n"
        "    %s\n\nHappy hacking!") % (mailing_list, mailing_list_url,
                                       docs_url, twitter_url)
    line = '=' * 82
    print(("\n%s\n%s\n%s" % (line, msg, line)))
<|endoftext|>


<commit_before>from setuptools import setup
from setuptools import Extension

version = "0.3.3"

jcpmodule = Extension(
    'json_cherry_pick.mapper',
    sources=['json_cherry_pick/mapper.c', 'json_cherry_pick/marker_map.c'],
)

setup(
    name='json-cherry-pick',
    version=version,
    packages=['json_cherry_pick'],
    description='JSON Cherry Picker',
    long_description='json-cherry-pick provides quick access to sub-objects inside large JSON blobs',
    url='https://github.com/tiras-j/json-cherry-pick',
    download_url='https://github.com/tiras-j/json-cherry-pick/tarball/{0}'.format(version),
    author='Josh Tiras',
    author_email='jot@yelp.com',
    license='Apache2',
    keywords=['JSON', 'cherry', 'pick', 'extractor'],
    classifiers=[
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Developers',
        'Topic :: Text Processing :: Indexing',
        'License :: OSI Approved :: Apache Software License',

        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    ext_modules=[jcpmodule],
    test_suite='json_cherry_pick.tests',
)
<commit_msg>Bump version 0.3.4<commit_after>from setuptools import setup
from setuptools import Extension

version = "0.3.4"

jcpmodule = Extension(
    'json_cherry_pick.mapper',
    sources=['json_cherry_pick/mapper.c', 'json_cherry_pick/marker_map.c'],
)

setup(
    name='json-cherry-pick',
    version=version,
    packages=['json_cherry_pick'],
    description='JSON Cherry Picker',
    long_description='json-cherry-pick provides quick access to sub-objects inside large JSON blobs',
    url='https://github.com/tiras-j/json-cherry-pick',
    download_url='https://github.com/tiras-j/json-cherry-pick/tarball/{0}'.format(version),
    author='Josh Tiras',
    author_email='jot@yelp.com',
    license='Apache2',
    keywords=['JSON', 'cherry', 'pick', 'extractor'],
    classifiers=[
        'Development Status :: 3 - Alpha',

        'Intended Audience :: Developers',
        'Topic :: Text Processing :: Indexing',
        'License :: OSI Approved :: Apache Software License',

        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    ext_modules=[jcpmodule],
    test_suite='json_cherry_pick.tests',
)
<|endoftext|>


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

# Copyright (c) 2008, Stefano Taschini <taschini@ieee.org>
# All rights reserved.
# See LICENSE for details.

"""Script for setting the distribution of the interval package and the
crlibm extension.

Typical usage
-------------

Build crlibm and place it in the current directory:

    python setup.py build_ext -i

Create a source distribution:

    python setup.py sdist --formats=gztar,zip

"""

from distutils.core import setup, Extension
from distutils.command.build_py import build_py

class custom_build_py(build_py):
    def run(self):
	from os import path as op
        def fix(package, src_dir, build_dir, filenames):
            assert filenames == [op.join('..', 'LICENSE')]
            return (package, '.', build_dir, ['LICENSE'])
        self.data_files = [fix(*t) for t in self.data_files]
        return build_py.run(self)

# A subset of http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: BSD License',
    'Operating System :: MacOS :: MacOS X',
    'Operating System :: Microsoft :: Windows',
    'Operating System :: POSIX :: Linux',
    'Programming Language :: C',
    'Programming Language :: Python',
    'Topic :: Scientific/Engineering :: Mathematics'
]

metadata = dict(
    description  = 'Interval arithmetic in Python',
    author       = 'Stefano Taschini',
    author_email = 'taschini@gmail.com',
    url          = "http://pyinterval.googlecode.com/",
    classifiers  = classifiers
);

setup(
    name         = 'pyinterval',
    version      = '1.0b14',
    packages     = ['interval'],
    package_data = dict(interval=['../LICENSE']),
    cmdclass     = dict(build_py=custom_build_py),
    ext_modules  = [
        Extension(
            'crlibm',
            sources      = ['ext/crlibmmodule.c'],
            include_dirs = ['/opt/crlibm/include'],
            library_dirs = ['/opt/crlibm/lib'],
            libraries    = ['crlibm'])
        ],
    **metadata)
<commit_msg>Updated version number<commit_after>#! /usr/bin/env python

# Copyright (c) 2008, Stefano Taschini <taschini@ieee.org>
# All rights reserved.
# See LICENSE for details.

"""Script for setting the distribution of the interval package and the
crlibm extension.

Typical usage
-------------

Build crlibm and place it in the current directory:

    python setup.py build_ext -i

Create a source distribution:

    python setup.py sdist --formats=gztar,zip

"""

from distutils.core import setup, Extension
from distutils.command.build_py import build_py

class custom_build_py(build_py):
    def run(self):
	from os import path as op
        def fix(package, src_dir, build_dir, filenames):
            assert filenames == [op.join('..', 'LICENSE')]
            return (package, '.', build_dir, ['LICENSE'])
        self.data_files = [fix(*t) for t in self.data_files]
        return build_py.run(self)

# A subset of http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: BSD License',
    'Operating System :: MacOS :: MacOS X',
    'Operating System :: Microsoft :: Windows',
    'Operating System :: POSIX :: Linux',
    'Programming Language :: C',
    'Programming Language :: Python',
    'Topic :: Scientific/Engineering :: Mathematics'
]

metadata = dict(
    description  = 'Interval arithmetic in Python',
    author       = 'Stefano Taschini',
    author_email = 'taschini@gmail.com',
    url          = "http://pyinterval.googlecode.com/",
    classifiers  = classifiers
);

setup(
    name         = 'pyinterval',
    version      = '1.0b21',
    packages     = ['interval'],
    package_data = dict(interval=['../LICENSE']),
    cmdclass     = dict(build_py=custom_build_py),
    ext_modules  = [
        Extension(
            'crlibm',
            sources      = ['ext/crlibmmodule.c'],
            include_dirs = ['/opt/crlibm/include'],
            library_dirs = ['/opt/crlibm/lib'],
            libraries    = ['crlibm'])
        ],
    **metadata)
<|endoftext|>


<commit_before>from __future__ import print_function

import os
import sys
import numpy

from setuptools import Command, Extension, setup

# https://github.com/Unidata/cftime/issues/34
try:
    from Cython.Build import cythonize
except ImportError:
    cythonize = False

BASEDIR = os.path.abspath(os.path.dirname(__file__))
CMDS_NOCYTHONIZE = ['clean','clean_cython','sdist']
COMPILER_DIRECTIVES = {}
DEFINE_MACROS = None
FLAG_COVERAGE = '--cython-coverage'  # custom flag enabling Cython line tracing
NAME = 'cftime'
CFTIME_DIR = os.path.join(BASEDIR, NAME)
CYTHON_FNAME = os.path.join(CFTIME_DIR, '_{}.pyx'.format(NAME))

class CleanCython(Command):
    description = 'Purge artifacts built by Cython'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        for rpath, _, fnames in os.walk(CFTIME_DIR):
            for fname in fnames:
                _, ext = os.path.splitext(fname)
                if ext in ('.pyc', '.pyo', '.c', '.so'):
                    artifact = os.path.join(rpath, fname)
                    if os.path.exists(artifact):
                        print('clean: removing file {!r}'.format(artifact))
                        os.remove(artifact)
                    else:
                        print('clean: skipping file {!r}'.format(artifact))

def extract_version():
    version = None
    with open(CYTHON_FNAME) as fi:
        for line in fi:
            if (line.startswith('__version__')):
                _, version = line.split('=')
                version = version.strip()[1:-1]  # Remove quotation characters.
                break
    return version

def load(fname):
    result = []
    with open(fname, 'r') as fi:
        result = [package.strip() for package in fi.readlines()]
    return result

def description():
    fname = os.path.join(BASEDIR, 'README.md')
    with open(fname, 'r') as fi:
        result = ''.join(fi.readlines())
    return result

if ((FLAG_COVERAGE in sys.argv or os.environ.get('CYTHON_COVERAGE', None))
    and cythonize):
    COMPILER_DIRECTIVES = {'linetrace': True,
                           'warn.maybe_uninitialized': False,
                           'warn.unreachable': False,
                           'warn.unused': False}
    DEFINE_MACROS = [('CYTHON_TRACE', '1'),
                     ('CYTHON_TRACE_NOGIL', '1')]
    if FLAG_COVERAGE in sys.argv:
        sys.argv.remove(FLAG_COVERAGE)
    print('enable: "linetrace" Cython compiler directive')

# See https://github.com/Unidata/cftime/issues/91
if any([arg in CMDS_NOCYTHONIZE for arg in sys.argv]):
    ext_modules = []
else:
    extension = Extension('{}._{}'.format(NAME, NAME),
                          sources=[CYTHON_FNAME],
                          define_macros=DEFINE_MACROS,
                          include_dirs=[numpy.get_include(),])
    ext_modules = [extension]
    if cythonize:
        ext_modules = cythonize(extension,
                                compiler_directives=COMPILER_DIRECTIVES,
                                language_level=2)

setup(
    name=NAME,
    author='Jeff Whitaker',
    author_email='jeffrey.s.whitaker@noaa.gov',
    description='Time-handling functionality from netcdf4-python',
    long_description=description(),
    long_description_content_type='text/markdown',
    cmdclass={'clean_cython': CleanCython},
    packages=[NAME],
    version=extract_version(),
    ext_modules=ext_modules,
    install_requires=load('requirements.txt'),
    tests_require=load('requirements-dev.txt'),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Topic :: Scientific/Engineering',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)']
    )
<commit_msg>switch to language level 3<commit_after>from __future__ import print_function

import os
import sys
import numpy

from setuptools import Command, Extension, setup

# https://github.com/Unidata/cftime/issues/34
try:
    from Cython.Build import cythonize
except ImportError:
    cythonize = False

BASEDIR = os.path.abspath(os.path.dirname(__file__))
CMDS_NOCYTHONIZE = ['clean','clean_cython','sdist']
COMPILER_DIRECTIVES = {}
DEFINE_MACROS = None
FLAG_COVERAGE = '--cython-coverage'  # custom flag enabling Cython line tracing
NAME = 'cftime'
CFTIME_DIR = os.path.join(BASEDIR, NAME)
CYTHON_FNAME = os.path.join(CFTIME_DIR, '_{}.pyx'.format(NAME))

class CleanCython(Command):
    description = 'Purge artifacts built by Cython'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        for rpath, _, fnames in os.walk(CFTIME_DIR):
            for fname in fnames:
                _, ext = os.path.splitext(fname)
                if ext in ('.pyc', '.pyo', '.c', '.so'):
                    artifact = os.path.join(rpath, fname)
                    if os.path.exists(artifact):
                        print('clean: removing file {!r}'.format(artifact))
                        os.remove(artifact)
                    else:
                        print('clean: skipping file {!r}'.format(artifact))

def extract_version():
    version = None
    with open(CYTHON_FNAME) as fi:
        for line in fi:
            if (line.startswith('__version__')):
                _, version = line.split('=')
                version = version.strip()[1:-1]  # Remove quotation characters.
                break
    return version

def load(fname):
    result = []
    with open(fname, 'r') as fi:
        result = [package.strip() for package in fi.readlines()]
    return result

def description():
    fname = os.path.join(BASEDIR, 'README.md')
    with open(fname, 'r') as fi:
        result = ''.join(fi.readlines())
    return result

if ((FLAG_COVERAGE in sys.argv or os.environ.get('CYTHON_COVERAGE', None))
    and cythonize):
    COMPILER_DIRECTIVES = {'linetrace': True,
                           'warn.maybe_uninitialized': False,
                           'warn.unreachable': False,
                           'warn.unused': False}
    DEFINE_MACROS = [('CYTHON_TRACE', '1'),
                     ('CYTHON_TRACE_NOGIL', '1')]
    if FLAG_COVERAGE in sys.argv:
        sys.argv.remove(FLAG_COVERAGE)
    print('enable: "linetrace" Cython compiler directive')

# See https://github.com/Unidata/cftime/issues/91
if any([arg in CMDS_NOCYTHONIZE for arg in sys.argv]):
    ext_modules = []
else:
    extension = Extension('{}._{}'.format(NAME, NAME),
                          sources=[CYTHON_FNAME],
                          define_macros=DEFINE_MACROS,
                          include_dirs=[numpy.get_include(),])
    ext_modules = [extension]
    if cythonize:
        ext_modules = cythonize(extension,
                                compiler_directives=COMPILER_DIRECTIVES,
                                language_level=3)

setup(
    name=NAME,
    author='Jeff Whitaker',
    author_email='jeffrey.s.whitaker@noaa.gov',
    description='Time-handling functionality from netcdf4-python',
    long_description=description(),
    long_description_content_type='text/markdown',
    cmdclass={'clean_cython': CleanCython},
    packages=[NAME],
    version=extract_version(),
    ext_modules=ext_modules,
    install_requires=load('requirements.txt'),
    tests_require=load('requirements-dev.txt'),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Topic :: Scientific/Engineering',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)']
    )
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
#!/usr/bin/python
from setuptools import setup, find_packages
from os.path import join, dirname

with open(join(dirname(__file__), 'scrapyrt/VERSION'), 'rb') as f:
    version = f.read().decode('ascii').strip()

setup(
    name="scrapyrt",
    version=version,
    author='Scrapinghub',
    author_email='info@scrapinghub.com',
    url="https://github.com/scrapinghub/scrapyrt",
    maintainer='Scrapinghub',
    maintainer_email='info@scrapinghub.com',
    description='Put Scrapy spiders behind an HTTP API',
    long_description=open('README.rst').read(),
    license='BSD',
    packages=find_packages(),
    entry_points={
        'console_scripts': ['scrapyrt = scrapyrt.cmdline:execute']
    },
    zip_safe=False,
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Operating System :: OS Independent',
        'Environment :: Console',
        'Environment :: No Input/Output (Daemon)',
        'Topic :: Internet :: WWW/HTTP',
        'License :: OSI Approved :: BSD License',
    ],
    install_requires=[
        'Twisted>=14.0.0',
        'Scrapy>=1.0.0',
        'demjson'
    ],
    package_data={
        'scrapyrt': [
            'VERSION',
        ]
    },
)
<commit_msg>[setup.py] add python 3 to supported versions<commit_after># -*- coding: utf-8 -*-
#!/usr/bin/python
from setuptools import setup, find_packages
from os.path import join, dirname

with open(join(dirname(__file__), 'scrapyrt/VERSION'), 'rb') as f:
    version = f.read().decode('ascii').strip()

setup(
    name="scrapyrt",
    version=version,
    author='Scrapinghub',
    author_email='info@scrapinghub.com',
    url="https://github.com/scrapinghub/scrapyrt",
    maintainer='Scrapinghub',
    maintainer_email='info@scrapinghub.com',
    description='Put Scrapy spiders behind an HTTP API',
    long_description=open('README.rst').read(),
    license='BSD',
    packages=find_packages(),
    entry_points={
        'console_scripts': ['scrapyrt = scrapyrt.cmdline:execute']
    },
    zip_safe=False,
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Operating System :: OS Independent',
        'Environment :: Console',
        'Environment :: No Input/Output (Daemon)',
        'Topic :: Internet :: WWW/HTTP',
        'License :: OSI Approved :: BSD License',
    ],
    install_requires=[
        'Twisted>=14.0.0',
        'Scrapy>=1.0.0',
        'demjson',
        'six'
    ],
    package_data={
        'scrapyrt': [
            'VERSION',
        ]
    },
)
<|endoftext|>


<commit_before>#!/usr/bin/python
# vim: set expandtab tabstop=4 shiftwidth=4:

###
### Warning!  This is a work-in-progress and isn't really
### suitable for all (or even many) situations.  It works
### well enough when installing to an Egg on Linux, but
### fails in various ways for most other installation
### targets.
###
### TODO: cx_Freeze support (or py2exe or whatever) for
### full Windows bundling.
###

import numpy
from setuptools import setup
from setuptools.extension import Extension
from pyinveditlib import about_version

# Use Cython if we can, otherwise just the .c file
nbt_ext_modules = []
try:
    from Cython.Distutils import build_ext
    nbt_ext_modules.append('pyinveditlib/pymclevel/_nbt.pyx')
except ImportError:
    print "Cython not found - using previously-Cython'd .c file instead"
    from setuptools.command.build_ext import build_ext
    nbt_ext_modules.append('pyinveditlib/pymclevel/_nbt.c')

#install_requires = [
#        'yaml',
#        'gtk',
#        'cairo'
#    ]

# External data files we include.  The recommended way to
# do this is with package_data, but that ends up burying
# the datafiles deep in difficult-to-find territory.  We
# want to keep these files easily editable by users, so
# we're using data_files instead.
data_files=[('share/pyinvedit/gfx', [ 'gfx/gui.png', 'gfx/items.png',
                      'gfx/logo.png', 'gfx/special.png',
                      'gfx/terrain.png' ]),
    ('share/pyinvedit/data', [ 'data/pyinvedit.yaml' ]),
    ('share/pyinvedit', [ 'COPYING.txt', 'README.txt',
        'LICENSE-pymclevel.txt', 'LICENSE-wraplabel.txt'])]

setup_args = dict(
    name='PyInvEdit',
    version=about_version,
    description='Minecraft Inventory Editor',
    long_description=open('./README.txt', 'r').read(),
    classifiers=[],
    keywords='minecraft',
    author='Christopher J Kucera',
    author_email='pez@apocalyptech.com',
    url='http://apocalyptech.com/minecraft/pyinvedit/',
    license='BSD License',
    packages=['pyinveditlib', 'pyinveditlib.pymclevel'],
    #install_requires=install_requires,
    zip_safe=False,
    entry_points = {
        'gui_scripts': [
            'pyinvedit = pyinveditlib.launcher:main',
        ]
    },
    data_files=data_files,
    ext_modules = [Extension('_nbt', nbt_ext_modules)],
    cmdclass = { 'build_ext': build_ext },
    include_dirs=numpy.get_include(),
    )

try:
    setup(**setup_args)
except SystemExit:
    del setup_args['ext_modules']
    del setup_args['cmdclass']
    del setup_args['include_dirs']
    setup(**setup_args)
    print
    print "**************************************************************"
    print "NOTICE: We were unable to compile the accelerated version"
    print "of the NBT processing module.  We've just fallen back to"
    print "including the pure-Python version, which is just as functional"
    print "but a bit slower.  If you're running a bdist or the like, note"
    print "that the resulting distfile may not be ideal."
    print "**************************************************************"
    print
<commit_msg>_nbt module builds where it's supposed to now<commit_after>#!/usr/bin/python
# vim: set expandtab tabstop=4 shiftwidth=4:

###
### Warning!  This is a work-in-progress and might not
### do the right thing in all situations, though it's
### steadily getting closer.  I think it's pretty generally
### usable on Linux, at least.
###
### TODO: cx_Freeze support (or py2exe or whatever) for
### full Windows bundling.
###
### TODO: Figure out how to get _nbt.pyx in bdist, for
### if building it fails during setup time but could
### possibly succeed at some later date with pyximport
###

import numpy
from setuptools import setup
from setuptools.extension import Extension
from pyinveditlib import about_version

# Use Cython if we can, otherwise just the .c file
nbt_ext_modules = []
try:
    from Cython.Distutils import build_ext
    nbt_ext_modules.append('pyinveditlib/pymclevel/_nbt.pyx')
except ImportError:
    print "Cython not found - using previously-Cython'd .c file instead"
    from setuptools.command.build_ext import build_ext
    nbt_ext_modules.append('pyinveditlib/pymclevel/_nbt.c')

#install_requires = [
#        'yaml',
#        'gtk',
#        'cairo'
#    ]

# External data files we include.  The recommended way to
# do this is with package_data, but that ends up burying
# the datafiles deep in difficult-to-find territory.  We
# want to keep these files easily editable by users, so
# we're using data_files instead.
data_files=[('share/pyinvedit/gfx', [ 'gfx/gui.png', 'gfx/items.png',
                      'gfx/logo.png', 'gfx/special.png',
                      'gfx/terrain.png' ]),
    ('share/pyinvedit/data', [ 'data/pyinvedit.yaml' ]),
    ('share/pyinvedit', [ 'COPYING.txt', 'README.txt',
        'LICENSE-pymclevel.txt', 'LICENSE-wraplabel.txt'])]

setup_args = dict(
    name='PyInvEdit',
    version=about_version,
    description='Minecraft Inventory Editor',
    long_description=open('./README.txt', 'r').read(),
    classifiers=[],
    keywords='minecraft',
    author='Christopher J Kucera',
    author_email='pez@apocalyptech.com',
    url='http://apocalyptech.com/minecraft/pyinvedit/',
    license='BSD License',
    packages=['pyinveditlib', 'pyinveditlib.pymclevel'],
    #install_requires=install_requires,
    zip_safe=False,
    entry_points = {
        'gui_scripts': [
            'pyinvedit = pyinveditlib.launcher:main',
        ]
    },
    data_files=data_files,
    ext_modules = [Extension('pyinveditlib.pymclevel._nbt', nbt_ext_modules)],
    cmdclass = { 'build_ext': build_ext },
    include_dirs=numpy.get_include(),
    )

try:
    setup(**setup_args)
except SystemExit:
    del setup_args['ext_modules']
    del setup_args['cmdclass']
    del setup_args['include_dirs']
    setup(**setup_args)
    print
    print "**************************************************************"
    print "NOTICE: We were unable to compile the accelerated version"
    print "of the NBT processing module.  We've just fallen back to"
    print "including the pure-Python version, which is just as functional"
    print "but a bit slower.  If you're running a bdist or the like, note"
    print "that the resulting distfile may not be ideal."
    print "**************************************************************"
    print
<|endoftext|>


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

import os
import re
import codecs
from setuptools import setup
from setuptools.command.test import test as orig_test

# Note: the name of the class is used as the name of the command on the console when the
# help text is printed, this is why I've used "test" as a class name.
class test(orig_test):
    # Removed the options of the original class: --test-module, --test-suite, --test-runner
    user_options = [
        ('verbosity=', 'v', 'Verbosity level: 0=minimal output, 1=normal output, '
         '2=verbose output, 3=very verbose output'),
        ('failfast', None, 'Tells Django to stop running the test suite after first failed test.'),
        ('reverse', 'r', 'Reverses test cases order.'),
    ]
    # We ask the arg parser of the command to pass all args to us.
    command_consumes_arguments = True

    def initialize_options(self):
        orig_test.initialize_options(self)
        self.verbosity = None
        self.failfast = None
        self.reverse = None
        # self.args is needed because of the above "command_consumes_arguments" class attribute.
        self.args = None

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

def find_version(*path):
    with codecs.open(os.path.join(script_dir, *path), 'r', 'utf8') as f:
        contents = f.read()

    # The version line must have the form
    # version_info = (X, Y, Z)
    m = re.search(
        r'^version_info\s*=\s*\(\s*(?P<v0>\d+)\s*,\s*(?P<v1>\d+)\s*,\s*(?P<v2>\d+)\s*\)\s*$',
        contents,
        re.MULTILINE,
    )
    if m:
        return '%s.%s.%s' % (m.group('v0'), m.group('v1'), m.group('v2'))
    raise RuntimeError('Unable to determine package version.')

with codecs.open(os.path.join(script_dir, 'README.rst'), 'r', 'utf8') as f:
    long_description = f.read()

setup(
    name='django-universal-view-decorator',
    version=find_version('django_universal_view_decorator', '__init__.py'),
    description='Write universal django view decorators that work with regular view functions, view classes, and also'
                'with view class methods. In case of decorating a view class the decorator is inherited by sublcasses.',
    long_description=long_description,

    url='https://github.com/pasztorpisti/django-universal-view-decorator',

    author='István Pásztor',
    author_email='pasztorpisti@gmail.com',

    license='MIT',

    classifiers=[
        'License :: OSI Approved :: MIT License',

        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Framework :: Django',

        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
    ],

    keywords='django universal view class decorator',
    packages=['django_universal_view_decorator', 'tests'],

    test_suite='setup_test_suite.SetupTestSuite',
    tests_require=['django==1.8', 'mock'],
    cmdclass={'test': test},
)
<commit_msg>typo fix<commit_after># -*- coding: utf-8 -*-

import os
import re
import codecs
from setuptools import setup
from setuptools.command.test import test as orig_test

# Note: the name of the class is used as the name of the command on the console when the
# help text is printed, this is why I've used "test" as a class name.
class test(orig_test):
    # Removed the options of the original class: --test-module, --test-suite, --test-runner
    user_options = [
        ('verbosity=', 'v', 'Verbosity level: 0=minimal output, 1=normal output, '
         '2=verbose output, 3=very verbose output'),
        ('failfast', None, 'Tells Django to stop running the test suite after first failed test.'),
        ('reverse', 'r', 'Reverses test cases order.'),
    ]
    # We ask the arg parser of the command to pass all args to us.
    command_consumes_arguments = True

    def initialize_options(self):
        orig_test.initialize_options(self)
        self.verbosity = None
        self.failfast = None
        self.reverse = None
        # self.args is needed because of the above "command_consumes_arguments" class attribute.
        self.args = None

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

def find_version(*path):
    with codecs.open(os.path.join(script_dir, *path), 'r', 'utf8') as f:
        contents = f.read()

    # The version line must have the form
    # version_info = (X, Y, Z)
    m = re.search(
        r'^version_info\s*=\s*\(\s*(?P<v0>\d+)\s*,\s*(?P<v1>\d+)\s*,\s*(?P<v2>\d+)\s*\)\s*$',
        contents,
        re.MULTILINE,
    )
    if m:
        return '%s.%s.%s' % (m.group('v0'), m.group('v1'), m.group('v2'))
    raise RuntimeError('Unable to determine package version.')

with codecs.open(os.path.join(script_dir, 'README.rst'), 'r', 'utf8') as f:
    long_description = f.read()

setup(
    name='django-universal-view-decorator',
    version=find_version('django_universal_view_decorator', '__init__.py'),
    description='Write universal django view decorators that work with regular view functions, view classes, and also'
                'with view class methods. In case of decorating a view class the decorator is inherited by subclasses.',
    long_description=long_description,

    url='https://github.com/pasztorpisti/django-universal-view-decorator',

    author='István Pásztor',
    author_email='pasztorpisti@gmail.com',

    license='MIT',

    classifiers=[
        'License :: OSI Approved :: MIT License',

        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Framework :: Django',

        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: Implementation :: PyPy',
    ],

    keywords='django universal view class decorator',
    packages=['django_universal_view_decorator', 'tests'],

    test_suite='setup_test_suite.SetupTestSuite',
    tests_require=['django==1.8', 'mock'],
    cmdclass={'test': test},
)
<|endoftext|>


<commit_before>"""
SunPy: Python for Solar Physics

The SunPy project is an effort to create an open-source software library for
solar physics using the Python programming language.
"""
DOCLINES = __doc__.split("\n")

CLASSIFIERS = [
    'Development Status :: 3 - Alpha',
    'Intended Audience :: Science/Research',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3',
    'Topic :: Software Development',
    'Topic :: Scientific/Engineering',
    'Topic :: Scientific/Engineering :: Physics',
    'Operating System :: Microsoft :: Windows',
    'Operating System :: POSIX',
    'Operating System :: Unix',
    'Operating System :: MacOS'
]

def install(setup): #pylint: disable=W0621
    from setuptools import find_packages
    #Crotate Module
    from distutils.core import Extension
    from os.path import dirname
    cwd = dirname(__file__)
    try:
        import numpy as np
    except ImportError:
        print("SunPy WARNING: NumPy must be installed first to build the C extension")

    if 'np' in locals():
        module = 'sunpy.image.Crotate'   # import this
        sourcefiles = [cwd + '/sunpy/image/src/rot_extn.c',
                       cwd + '/sunpy/image/src/transform/aff_tr.c']
        libs = ['m']
        # -ON for compile optimise
        gcc_args = ['-std=c99', '-O3']
        # gcc_args = ['-std=c99']

        # need *module* name here
        crotate = Extension(module,
                            sources = sourcefiles,
                            libraries = libs,
                            extra_compile_args = gcc_args,
                            include_dirs = [np.get_include(),cwd]
                            )

    setup(
        author="Steven Christe, Keith Hughitt, Jack Ireland and Alex Young",
        author_email="keith.hughitt@nasa.gov",
        classifiers=CLASSIFIERS,
        description=DOCLINES[0],
        download_url="http://www.sunpy.org/download/",
        # 2011/11/21: disabling for now to prevent paver warnings
        #extra_requires={
        #    "JPEG 2000": ['PIL'],
        #    "Plotman": ['PyQt4']
        #},
        install_requires=[
            'numpy',
            'pyfits',
            'scipy',
 #           'suds',
            'pandas',
            'matplotlib>=1.0',
 #           'beautifulsoup4',
        ],
        license="BSD",
        long_description="\n".join(DOCLINES[2:]),
        maintainer="SunPy Developers",
        maintainer_email="sunpy@googlegroups.com",
        name="sunpy",
        packages=find_packages(),
        package_data={'': ['*.fits', '*.fit', 'sunpyrc']},
        platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
        provides=['sunpy'],
        url="http://www.sunpy.org/",
        use_2to3=True,
        version="0.1",
        ext_modules = [crotate] if 'crotate' in locals() else []
    )

if __name__ == '__main__':
    from distribute_setup import use_setuptools
    use_setuptools()
    from setuptools import setup
    install(setup)
<commit_msg>more setup.py testing for shining pandas.<commit_after>"""
SunPy: Python for Solar Physics

The SunPy project is an effort to create an open-source software library for
solar physics using the Python programming language.
"""
DOCLINES = __doc__.split("\n")

CLASSIFIERS = [
    'Development Status :: 3 - Alpha',
    'Intended Audience :: Science/Research',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3',
    'Topic :: Software Development',
    'Topic :: Scientific/Engineering',
    'Topic :: Scientific/Engineering :: Physics',
    'Operating System :: Microsoft :: Windows',
    'Operating System :: POSIX',
    'Operating System :: Unix',
    'Operating System :: MacOS'
]

def install(setup): #pylint: disable=W0621
    from setuptools import find_packages
    #Crotate Module
    from distutils.core import Extension
    from os.path import dirname
    cwd = dirname(__file__)
    try:
        import numpy as np
    except ImportError:
        print("SunPy WARNING: NumPy must be installed first to build the C extension")

    if 'np' in locals():
        module = 'sunpy.image.Crotate'   # import this
        sourcefiles = [cwd + '/sunpy/image/src/rot_extn.c',
                       cwd + '/sunpy/image/src/transform/aff_tr.c']
        libs = ['m']
        # -ON for compile optimise
        gcc_args = ['-std=c99', '-O3']
        # gcc_args = ['-std=c99']

        # need *module* name here
        crotate = Extension(module,
                            sources = sourcefiles,
                            libraries = libs,
                            extra_compile_args = gcc_args,
                            include_dirs =
                            [np.get_include(),cwd+'/sunpy/image/src/']
                            )

    setup(
        author="Steven Christe, Keith Hughitt, Jack Ireland and Alex Young",
        author_email="keith.hughitt@nasa.gov",
        classifiers=CLASSIFIERS,
        description=DOCLINES[0],
        download_url="http://www.sunpy.org/download/",
        # 2011/11/21: disabling for now to prevent paver warnings
        #extra_requires={
        #    "JPEG 2000": ['PIL'],
        #    "Plotman": ['PyQt4']
        #},
        install_requires=[
            'numpy',
            'pyfits',
            'scipy',
 #           'suds',
            'pandas',
            'matplotlib>=1.0',
 #           'beautifulsoup4',
        ],
        license="BSD",
        long_description="\n".join(DOCLINES[2:]),
        maintainer="SunPy Developers",
        maintainer_email="sunpy@googlegroups.com",
        name="sunpy",
        packages=find_packages(),
        package_data={'': ['*.fits', '*.fit', 'sunpyrc']},
        platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
        provides=['sunpy'],
        url="http://www.sunpy.org/",
        use_2to3=True,
        version="0.1",
        ext_modules = [crotate] if 'crotate' in locals() else []
    )

if __name__ == '__main__':
    from distribute_setup import use_setuptools
    use_setuptools()
    from setuptools import setup
    install(setup)
<|endoftext|>


<commit_before># encoding: utf-8
import sys
import platform

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

import versioneer
import numpy
from Cython.Distutils import build_ext
from Cython.Build import cythonize

if sys.platform == 'darwin':
    # OS X
    version, _, _ = platform.mac_ver()
    parts = version.split('.')
    v1 = int(parts[0])
    v2 = int(parts[1])
    v3 = int(parts[2]) if len(parts) == 3 else None

    if v2 >= 10:
        # More than 10.10
        extra_compile_args=['-I/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers']
    else:
        extra_compile_args=['-I/System/Library/Frameworks/vecLib.framework/Headers']

    ext_modules = [Extension(
                   name='tsne/bh_sne',
                   sources=['tsne/bh_sne_src/quadtree.cpp', 'tsne/bh_sne_src/tsne.cpp', 'tsne/bh_sne.pyx'],
                   include_dirs=[numpy.get_include(), 'tsne/bh_sne_src/'],
                   extra_compile_args=extra_compile_args,
                   extra_link_args=['-Wl,-framework', '-Wl,Accelerate', '-lcblas'],
                   language='c++')]
    ext_modules = cythonize(ext_modules)
else:
    # LINUX
    ext_modules = [Extension(
                   name='bh_sne',
                   sources=['tsne/bh_sne_src/quadtree.cpp', 'tsne/bh_sne_src/tsne.cpp', 'tsne/bh_sne.pyx'],
                   include_dirs=[numpy.get_include(), '/usr/local/include', 'tsne/bh_sne_src/'],
                   library_dirs=['/usr/local/lib'],
                   extra_compile_args=['-msse2', '-O3', '-fPIC', '-w'],
                   extra_link_args=['-lcblas'],
                   language='c++')]

with open('requirements.txt') as f:
    required = f.read().splitlines()

cmdclass = versioneer.get_cmdclass()
cmdclass['build_ext'] = build_ext

setup(name='tsne',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      description='TSNE implementations for python',
      long_description='',
      author='Daniel Rodriguez',
      author_email='df.rodriguez@gmail.com',
      url='https://github.com/danielfrg/py_tsne',
      license='Apache 2.0',
      packages=find_packages(),
      ext_modules=ext_modules,
      install_requires=required
)
<commit_msg>Fix cythonize for Linux<commit_after># encoding: utf-8
import sys
import platform

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

import versioneer
import numpy
from Cython.Distutils import build_ext
from Cython.Build import cythonize

if sys.platform == 'darwin':
    # OS X
    version, _, _ = platform.mac_ver()
    parts = version.split('.')
    v1 = int(parts[0])
    v2 = int(parts[1])
    v3 = int(parts[2]) if len(parts) == 3 else None

    if v2 >= 10:
        # More than 10.10
        extra_compile_args=['-I/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers']
    else:
        extra_compile_args=['-I/System/Library/Frameworks/vecLib.framework/Headers']

    ext_modules = [Extension(name='bh_sne',
                   sources=['tsne/bh_sne_src/quadtree.cpp', 'tsne/bh_sne_src/tsne.cpp', 'tsne/bh_sne.pyx'],
                   include_dirs=[numpy.get_include(), 'tsne/bh_sne_src/'],
                   extra_compile_args=extra_compile_args,
                   extra_link_args=['-Wl,-framework', '-Wl,Accelerate', '-lcblas'],
                   language='c++')]
else:
    # LINUX
    ext_modules = [Extension(name='bh_sne',
                   sources=['tsne/bh_sne_src/quadtree.cpp', 'tsne/bh_sne_src/tsne.cpp', 'tsne/bh_sne.pyx'],
                   include_dirs=[numpy.get_include(), '/usr/local/include', 'tsne/bh_sne_src/'],
                   library_dirs=['/usr/local/lib'],
                   extra_compile_args=['-msse2', '-O3', '-fPIC', '-w'],
                   extra_link_args=['-lcblas'],
                   language='c++')]

ext_modules = cythonize(ext_modules)

with open('requirements.txt') as f:
    required = f.read().splitlines()

cmdclass = versioneer.get_cmdclass()
cmdclass['build_ext'] = build_ext

setup(name='tsne',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      description='TSNE implementations for python',
      long_description='',
      author='Daniel Rodriguez',
      author_email='df.rodriguez@gmail.com',
      url='https://github.com/danielfrg/py_tsne',
      license='Apache 2.0',
      packages=find_packages(),
      ext_modules=ext_modules,
      install_requires=required
)
<|endoftext|>


<commit_before>import os

from setuptools import find_packages, setup

from overwrite_storage import __version__

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
    README = readme.read()

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

setup(
    name='django-overwrite-storage',
    version=__version__,
    packages=find_packages(exclude=["tests"]),
    include_package_data=True,
    install_requires=[
        "django>=1.7,<=1.10"
    ],
    tests_require=[
        "tox"
    ],
    test_suite="runtests.main",
    license='MIT',
    description='Django app which provides a storage class which clobbers upload files with the same name',
    long_description=README,
    url='https://github.com/ckot/django-overwrite-storage/',
    author='Scott Silliman',
    author_email='scott.t.silliman@gmail.com',
    classifiers=[
        "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",
        "Private :: Do not Upload"
    ]
)

<commit_msg>removed install_requires and tests_requires<commit_after>import os

from setuptools import find_packages, setup

from overwrite_storage import __version__

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
    README = readme.read()

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

setup(
    name='django-overwrite-storage',
    version=__version__,
    packages=find_packages(exclude=["tests"]),
    include_package_data=True,
    test_suite="runtests.main",
    license='MIT',
    description='Django app which provides a storage class which clobbers upload files with the same name',
    long_description=README,
    url='https://github.com/ckot/django-overwrite-storage/',
    author='Scott Silliman',
    author_email='scott.t.silliman@gmail.com',
    classifiers=[
        "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",
        "Private :: Do not Upload"
    ]
)

<|endoftext|>


<commit_before>#!/usr/bin/python2
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Sebastian Wiesner <lunaryorn@googlemail.com>
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

# 1. Redistributions of source code must retain the above copyright notice,
#    this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

import sys

from setuptools import setup

import synaptiks
from synaptiks.setup import kde, l10n

if sys.version_info[0] >= 3:
    sys.exit('Python 3 is not yet supported.  Try "python2".')

requirements = []
if sys.version_info[:2] < (2, 7):
    requirements.append('argparse>=1.1')

setup(
    distclass=kde.Distribution,
    cmdclass={'install_kde_files': kde.InstallFiles,
              'install_kde_icons': kde.InstallIcons,
              'install_kde_messages': kde.InstallMessages,
              'extract_messages': l10n.ExtractMessages,
              'init_catalog': l10n.InitCatalog,
              'compile_catalog': l10n.CompileCatalog,
              'update_catalog': l10n.UpdateCatalog},
    name='synaptiks',
    version=synaptiks.__version__,
    url='http://synaptiks.lunaryorn.de',
    author='Sebastian Wiesner',
    author_email='lunaryorn@googlemail.com',
    description='A KDE touchpad management tool',
    platforms='X11',
    license='BSD',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: X11 Applications :: KDE',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Unix',
        'Programming Language :: Python :: 2',
        'Topic :: Desktop Environment :: K Desktop Environment (KDE)',
        'Topic :: System :: Hardware',
        'Topic :: Utilities',
        ],
    packages=['synaptiks', 'synaptiks.kde', 'synaptiks._bindings'],
    package_data={
        'synaptiks.kde': ['ui/*.ui'],
        },
    entry_points={
        'gui_scripts': ['synaptiks = synaptiks.kde.trayapplication:main'],
        'console_scripts': ['synaptikscfg = synaptiks.config:main']},
    zip_safe=False,
    install_requires=requirements,
    kde_files={
        'xdgdata-apps': ['synaptiks.desktop'],
        'services': ['services/kcm_synaptiks.desktop'],
        'appdata': ['services/kcm_synaptiks.py', 'synaptiks.notifyrc'],
        'autostart': ['autostart/init_synaptiks_config.desktop',
                      'autostart/synaptiks_autostart.desktop']},
    kde_icons=[
        kde.ThemeIcon('hicolor', 'scalable', 'apps', 'pics/synaptiks.svgz'),
        kde.StandAloneIcon('pics/off-overlay.svgz')]
    )
<commit_msg>Use readme as long description and improved short one<commit_after>#!/usr/bin/python2
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Sebastian Wiesner <lunaryorn@googlemail.com>
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

# 1. Redistributions of source code must retain the above copyright notice,
#    this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

import sys
from codecs import open

from setuptools import setup

import synaptiks
from synaptiks.setup import kde, l10n

if sys.version_info[0] >= 3:
    sys.exit('Python 3 is not yet supported.  Try "python2".')

requirements = []
if sys.version_info[:2] < (2, 7):
    requirements.append('argparse>=1.1')

with open('README.rst', encoding='utf-8') as stream:
    long_description = stream.read()

setup(
    distclass=kde.Distribution,
    cmdclass={'install_kde_files': kde.InstallFiles,
              'install_kde_icons': kde.InstallIcons,
              'install_kde_messages': kde.InstallMessages,
              'extract_messages': l10n.ExtractMessages,
              'init_catalog': l10n.InitCatalog,
              'compile_catalog': l10n.CompileCatalog,
              'update_catalog': l10n.UpdateCatalog},
    name='synaptiks',
    version=synaptiks.__version__,
    url='http://synaptiks.lunaryorn.de',
    author='Sebastian Wiesner',
    author_email='lunaryorn@googlemail.com',
    description='A KDE touchpad configuration and management tool',
    long_description=long_description,
    platforms='X11',
    license='BSD',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: X11 Applications :: KDE',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Unix',
        'Programming Language :: Python :: 2',
        'Topic :: Desktop Environment :: K Desktop Environment (KDE)',
        'Topic :: System :: Hardware',
        'Topic :: Utilities',
        ],
    packages=['synaptiks', 'synaptiks.kde', 'synaptiks._bindings'],
    package_data={
        'synaptiks.kde': ['ui/*.ui'],
        },
    entry_points={
        'gui_scripts': ['synaptiks = synaptiks.kde.trayapplication:main'],
        'console_scripts': ['synaptikscfg = synaptiks.config:main']},
    zip_safe=False,
    install_requires=requirements,
    kde_files={
        'xdgdata-apps': ['synaptiks.desktop'],
        'services': ['services/kcm_synaptiks.desktop'],
        'appdata': ['services/kcm_synaptiks.py', 'synaptiks.notifyrc'],
        'autostart': ['autostart/init_synaptiks_config.desktop',
                      'autostart/synaptiks_autostart.desktop']},
    kde_icons=[
        kde.ThemeIcon('hicolor', 'scalable', 'apps', 'pics/synaptiks.svgz'),
        kde.StandAloneIcon('pics/off-overlay.svgz')]
    )
<|endoftext|>


<commit_before>from setuptools import setup

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

with open('CHANGES.rst') as changes_file:
    changes = changes_file.read()

with open('AUTHORS.rst') as authors_file:
    authors = authors_file.read()

with open('requirements.txt') as f:
    requirements = []
    for library in f.read().splitlines():
        requirements.append(library)

# Read in the version number
exec(open('ciw/version.py', 'r').read())

setup(
    name='Ciw',
    version=__version__,
    url='https://github.com/CiwPython/Ciw',
    author='Geraint Palmer, Vincent Knight',
    author_email='palmer.geraint@googlemail.com',
    packages=['ciw'],
    description='A discrete event simulation library for open queueing networks',
    long_description=readme + '\n\n' + changes + '\n\n' + authors,
    install_requires=requirements
)
<commit_msg>Only require hypothesis for development<commit_after>from setuptools import setup

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

with open('CHANGES.rst') as changes_file:
    changes = changes_file.read()

with open('AUTHORS.rst') as authors_file:
    authors = authors_file.read()

with open('requirements.txt') as f:
    requirements = []
    for library in f.read().splitlines():
        if "hypothesis" not in library:  # Skip: used only for dev
            requirements.append(library)

# Read in the version number
exec(open('ciw/version.py', 'r').read())

setup(
    name='Ciw',
    version=__version__,
    url='https://github.com/CiwPython/Ciw',
    author='Geraint Palmer, Vincent Knight',
    author_email='palmer.geraint@googlemail.com',
    packages=['ciw'],
    description='A discrete event simulation library for open queueing networks',
    long_description=readme + '\n\n' + changes + '\n\n' + authors,
    install_requires=requirements
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name = 'sphinx-csharp',
    version = '0.1.5',
    author = 'djungelorm',
    author_email = 'djungelorm@users.noreply.github.com',
    packages = ['sphinx_csharp'],
    url = 'https://github.com/djungelorm/sphinx-csharp',
    license = 'MIT',
    description = 'C# domain for Sphinx',
    install_requires = ['Sphinx>=1.3'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Operating System :: OS Independent',
        'Topic :: Documentation :: Sphinx'
    ]
)
<commit_msg>v0.1.6<commit_after>from setuptools import setup

setup(
    name = 'sphinx-csharp',
    version = '0.1.6',
    author = 'djungelorm',
    author_email = 'djungelorm@users.noreply.github.com',
    packages = ['sphinx_csharp'],
    url = 'https://github.com/djungelorm/sphinx-csharp',
    license = 'MIT',
    description = 'C# domain for Sphinx',
    install_requires = ['Sphinx>=1.3'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Operating System :: OS Independent',
        'Topic :: Documentation :: Sphinx'
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup

description = 'RDFLib SPARQLStore and SPARQLUpdateStore implementation for VIVO.'

setup(
    name = 'vivo-rdflib-sparqlstore',
    version = '0.0.1',
    url = 'https://github.com/lawlesst/rdflib-vivo-sparqlstore',
    author = 'Ted Lawless',
    author_email = 'lawlesst@gmail.com',
    py_modules = ['vstore',],
    scripts = ['vstore.py'],
    description = description,
    install_requires=[
        'rdflib>=4.2',
        'click'
    ],
    entry_points='''
        [console_scripts]
        vivoUpdate=vivoUpdate:process
    '''
)

<commit_msg>Read requirements. Add vivoUpdate to modules.<commit_after>from setuptools import setup

description = 'RDFLib SPARQLStore and SPARQLUpdateStore implementation for VIVO.'

with open('requirements.txt') as f:
    required = f.read().splitlines()

setup(
    name = 'vivo-rdflib-sparqlstore',
    version = '0.0.1',
    url = 'https://github.com/lawlesst/rdflib-vivo-sparqlstore',
    author = 'Ted Lawless',
    author_email = 'lawlesst@gmail.com',
    py_modules = ['vstore', 'vivoUpdate'],
    scripts = ['vstore.py'],
    description = description,
    install_requires=required,
    entry_points='''
        [console_scripts]
        vivoUpdate=vivoUpdate:process
    '''
)

<|endoftext|>


<commit_before>"""Model-like encapsulation of big dict structure (like JSON data)."""
from setuptools import setup, find_packages

setup(
    name='barrel',
    version='0.1.3',
    description='python interface to reaktor API',
    long_description=__doc__,
    license='BSD',
    author='txtr web team',
    author_email='web-dev@txtr.com',
    url='https://github.com/txtr/barrel/',
    packages=find_packages(),
    platforms='any',
    install_requires=['blinker', 'iso8601', 'holon', ],
    dependency_links=[
        'https://github.com/txtr/holon/zipball/0.0.5#egg=holon',
    ]
)
<commit_msg>Bump version to 0.2.0 and update description.<commit_after>"""Model-like encapsulation of big dict structure (like JSON data)."""
from setuptools import setup, find_packages

setup(
    name='barrel',
    version='0.2.0',
    description='Python stores for JSON data encapsulation',
    long_description=__doc__,
    license='BSD',
    author='txtr web team',
    author_email='web-dev@txtr.com',
    url='https://github.com/txtr/barrel/',
    packages=find_packages(),
    platforms='any',
    install_requires=['blinker', 'iso8601', 'holon', ],
    dependency_links=[
        'https://github.com/txtr/holon/zipball/0.0.5#egg=holon',
    ]
)
<|endoftext|>


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

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

module_file = open("rhcephpkg/__init__.py").read()
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
version = metadata['version']

class ReleaseCommand(Command):
    """ Tag and push a new release. """

    user_options = [('sign', 's', 'GPG-sign the Git tag and release files')]

    def initialize_options(self):
        self.sign = False

    def finalize_options(self):
        pass

    def run(self):
        # Create Git tag
        tag_name = 'v%s' % version
        cmd = ['git', 'tag', '-a', tag_name, '-m', 'version %s' % version]
        if self.sign:
            cmd.append('-s')
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push Git tag to origin remote
        cmd = ['git', 'push', 'origin', tag_name]
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push package to pypi
        cmd = ['python', 'setup.py', 'sdist', 'upload']
        if self.sign:
            cmd.append('--sign')
        print(' '.join(cmd))
        subprocess.check_call(cmd)

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

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ''

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

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

from setuptools import setup

setup(
    name             = 'rhcephpkg',
    description      = 'Packaging tool for Red Hat Ceph Storage product',
    packages         = ['rhcephpkg'],
    author           = 'Ken Dreyer',
    author_email     = 'kdreyer [at] redhat.com',
    url              = 'https://github.com/red-hat-storage/rhcephpkg',
    version          = metadata['version'],
    license          = 'MIT',
    zip_safe         = False,
    keywords         = 'packaging, build, rpkg',
    long_description = LONG_DESCRIPTION,
    scripts          = ['bin/rhcephpkg'],
    install_requires = [
        'python-jenkins',
        'six',
        'tambo>=0.1.0',
    ],
    tests_require    = [
        'pytest',
        'pytest-flake8',
        'httpretty',
    ],
    cmdclass = {'test': PyTest, 'release': ReleaseCommand},
)
<commit_msg>setup.py: rm comment<commit_after>import os
import re
import subprocess
import sys
from setuptools.command.test import test as TestCommand
from setuptools import Command

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

module_file = open("rhcephpkg/__init__.py").read()
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
version = metadata['version']

class ReleaseCommand(Command):
    """ Tag and push a new release. """

    user_options = [('sign', 's', 'GPG-sign the Git tag and release files')]

    def initialize_options(self):
        self.sign = False

    def finalize_options(self):
        pass

    def run(self):
        # Create Git tag
        tag_name = 'v%s' % version
        cmd = ['git', 'tag', '-a', tag_name, '-m', 'version %s' % version]
        if self.sign:
            cmd.append('-s')
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push Git tag to origin remote
        cmd = ['git', 'push', 'origin', tag_name]
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push package to pypi
        cmd = ['python', 'setup.py', 'sdist', 'upload']
        if self.sign:
            cmd.append('--sign')
        print(' '.join(cmd))
        subprocess.check_call(cmd)

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

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ''

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

    def run_tests(self):
        import pytest
        errno = pytest.main('rhcephpkg --flake8 ' + self.pytest_args)
        sys.exit(errno)

from setuptools import setup

setup(
    name             = 'rhcephpkg',
    description      = 'Packaging tool for Red Hat Ceph Storage product',
    packages         = ['rhcephpkg'],
    author           = 'Ken Dreyer',
    author_email     = 'kdreyer [at] redhat.com',
    url              = 'https://github.com/red-hat-storage/rhcephpkg',
    version          = metadata['version'],
    license          = 'MIT',
    zip_safe         = False,
    keywords         = 'packaging, build, rpkg',
    long_description = LONG_DESCRIPTION,
    scripts          = ['bin/rhcephpkg'],
    install_requires = [
        'python-jenkins',
        'six',
        'tambo>=0.1.0',
    ],
    tests_require    = [
        'pytest',
        'pytest-flake8',
        'httpretty',
    ],
    cmdclass = {'test': PyTest, 'release': ReleaseCommand},
)
<|endoftext|>


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

from setuptools import setup, find_packages

setup(
    name='service-configuration-lib',
    version='0.7.3',
    provides=['service_configuration_lib'],
    description='Start, stop, and inspect Yelp SOA services',
    url='https://github.com/Yelp/service_configuration_lib',
    author='Yelp Operations Team',
    author_email='opensource+scl@yelp.com',
    packages=find_packages(exclude=['tests', 'scripts']),
    install_requires=['PyYAML >= 3.0'],
    license='Copyright Yelp 2013, All Rights Reserved',
    scripts=[
        'scripts/all_nodes_that_receive',
        'scripts/all_nodes_that_run',
        'scripts/dump_service_configuration_yaml',
        'scripts/services_deployed_here',
        'scripts/services_needing_puppet_help',
        'scripts/services_that_run_here',
        'scripts/services_using_ssl'
    ],
)
<commit_msg>0.8.0<commit_after>#!/usr/bin/env python

from setuptools import setup, find_packages

setup(
    name='service-configuration-lib',
    version='0.8.0',
    provides=['service_configuration_lib'],
    description='Start, stop, and inspect Yelp SOA services',
    url='https://github.com/Yelp/service_configuration_lib',
    author='Yelp Operations Team',
    author_email='opensource+scl@yelp.com',
    packages=find_packages(exclude=['tests', 'scripts']),
    install_requires=['PyYAML >= 3.0'],
    license='Copyright Yelp 2013, All Rights Reserved',
    scripts=[
        'scripts/all_nodes_that_receive',
        'scripts/all_nodes_that_run',
        'scripts/dump_service_configuration_yaml',
        'scripts/services_deployed_here',
        'scripts/services_needing_puppet_help',
        'scripts/services_that_run_here',
        'scripts/services_using_ssl'
    ],
)
<|endoftext|>


<commit_before>"""
Copyright 2015 BlazeMeter Inc.

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

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

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

from bzt.resources.version import VERSION

with open('requirements.txt') as _f:
    content = _f.read()
    requires = [str(req) for req in pkg_resources.parse_requirements(content)]

setup(
    name="bzt",
    version=VERSION,
    description='Taurus Tool for Continuous Testing',
    long_description=open('README.md').read(),
    long_description_content_type='text/markdown',
    author='Andrey Pokhilko',
    author_email='andrey@blazemeter.com',
    url='http://gettaurus.org/',
    download_url='http://gettaurus.org/docs/DeveloperGuide/#Python-Egg-Snapshots',
    license='Apache 2.0',
    install_requires=requires,
    packages=['bzt', 'bzt.engine', 'bzt.jmx', 'bzt.modules', 'bzt.resources', 'bzt.resources.version',
              'bzt.modules.java', 'bzt.modules.apiritif', 'bzt.modules.python'],
    entry_points={
        'console_scripts': [
            'bzt=bzt.cli:main',
            'jmx2yaml=bzt.jmx2yaml:main',
            'soapui2yaml=bzt.soapui2yaml:main',
            'swagger2yaml=bzt.swagger2yaml:main',
        ],
    },
    include_package_data=True,
    package_data={
        "bzt": [],
    },

    classifiers=[
        'Development Status :: 5 - Production/Stable',

        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Software Development :: Testing',
        'Topic :: Software Development :: Testing :: Traffic Generation',

        'License :: OSI Approved :: Apache Software License',

        'Operating System :: Microsoft :: Windows',
        'Operating System :: MacOS',
        'Operating System :: POSIX :: Linux',

        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
    ],
    python_requires='>=3.5',    # should be '>=3.7', but let's keep it for obsolete configuration
)
<commit_msg>Slightly upgrade supported Python version<commit_after>"""
Copyright 2015 BlazeMeter Inc.

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

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

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

from bzt.resources.version import VERSION

with open('requirements.txt') as _f:
    content = _f.read()
    requires = [str(req) for req in pkg_resources.parse_requirements(content)]

setup(
    name="bzt",
    version=VERSION,
    description='Taurus Tool for Continuous Testing',
    long_description=open('README.md').read(),
    long_description_content_type='text/markdown',
    author='Andrey Pokhilko',
    author_email='andrey@blazemeter.com',
    url='http://gettaurus.org/',
    download_url='http://gettaurus.org/docs/DeveloperGuide/#Python-Egg-Snapshots',
    license='Apache 2.0',
    install_requires=requires,
    packages=['bzt', 'bzt.engine', 'bzt.jmx', 'bzt.modules', 'bzt.resources', 'bzt.resources.version',
              'bzt.modules.java', 'bzt.modules.apiritif', 'bzt.modules.python'],
    entry_points={
        'console_scripts': [
            'bzt=bzt.cli:main',
            'jmx2yaml=bzt.jmx2yaml:main',
            'soapui2yaml=bzt.soapui2yaml:main',
            'swagger2yaml=bzt.swagger2yaml:main',
        ],
    },
    include_package_data=True,
    package_data={
        "bzt": [],
    },

    classifiers=[
        'Development Status :: 5 - Production/Stable',

        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Software Development :: Testing',
        'Topic :: Software Development :: Testing :: Traffic Generation',

        'License :: OSI Approved :: Apache Software License',

        'Operating System :: Microsoft :: Windows',
        'Operating System :: MacOS',
        'Operating System :: POSIX :: Linux',

        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
    ],
    python_requires='>=3.6',    # should be '>=3.7', but let's keep it for obsolete configuration
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

try:
  import nose.commands
  extra_args = dict(
    cmdclass={'test': nose.commands.nosetests},
  )
except ImportError:
  extra_args = dict()

# TODO: would this work? (is the file included in the dist?)
#tests_require = [l.strip() for l in open('test-requirements.txt').readlines()]
tests_require = ['mock']

setup(
  name='dear_astrid',
  version='0.1.0',

  author='Randy Stauner',
  author_email='randy@magnificent-tears.com',

  packages=find_packages(), #['dear_astrid', 'dear_astrid.test'],
  #scripts=['bin/dear_astrid.py'],

  url='http://github.com/rwstauner/dear_astrid/',
  license='MIT',
  description='Migrate tasks from Astrid backup xml',
  long_description=open('README.rst').read(),

  install_requires=[
    'pyrtm>=0.4.1',
  ],

  setup_requires=['nose>=1.0'],

  tests_require=tests_require,

  extras_require={
    'test': tests_require,
  },

  **extra_args
)
<commit_msg>Comment on using distribute<commit_after># TODO: use distribute
from setuptools import setup, find_packages

try:
  import nose.commands
  extra_args = dict(
    cmdclass={'test': nose.commands.nosetests},
  )
except ImportError:
  extra_args = dict()

# TODO: would this work? (is the file included in the dist?)
#tests_require = [l.strip() for l in open('test-requirements.txt').readlines()]
tests_require = ['mock']

setup(
  name='dear_astrid',
  version='0.1.0',

  author='Randy Stauner',
  author_email='randy@magnificent-tears.com',

  packages=find_packages(),
  #scripts=['bin/dear_astrid.py'],

  url='http://github.com/rwstauner/dear_astrid/',
  license='MIT',
  description='Migrate tasks from Astrid backup xml',
  long_description=open('README.rst').read(),

  install_requires=[
    'pyrtm>=0.4.1',
  ],

  setup_requires=['nose>=1.0'],

  tests_require=tests_require,

  extras_require={
    'test': tests_require,
  },

  **extra_args
)
<|endoftext|>


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

import os
import sys

from setuptools import setup, find_packages

sys.path.append(
    os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))

from facio import __version__

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

install_requires = [
    'Jinja2==2.6',
    'clint2==0.3.2',
    'sh==1.08',
    'six==1.3.0',
]

test_requires = [
    'mock==1.0.1',
    'tox==1.4.3',
    'nose==1.3',
    'spec==0.11.1',
    'coverage==3.6',
]

dev_requires = test_requires + [
    'ipdb==0.7',
    'ipython==0.13',
    'Sphinx==1.1.3',
    'flake8==2.0',
]

setup(
    name='facio',
    version=__version__,
    author='Christopher John Reeves',
    author_email='hello@chris.reeves.io',
    url='https://github.com/krak3n/facio',
    description='Project scaffolding using custom templates.',
    long_description=read('README.rst'),
    package_dir={'': 'src'},
    packages=find_packages('src'),
    scripts=['src/facio/bin/facio'],
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    test_suite='runtests.runtests',
    extras_require={
        'tests': test_requires,
        'develop': dev_requires,
    },
    classifiers=[
        'Environment :: Console',
        'Development Status :: 5 - Production/Stable',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Intended Audience :: Developers',
        'Operating System :: Unix',
        'License :: OSI Approved :: BSD License',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    license='BSD',
)
<commit_msg>Upgrading ipython versions for py3 support<commit_after>#!/usr/bin/env python

import os
import sys

from setuptools import setup, find_packages

sys.path.append(
    os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))

from facio import __version__

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

install_requires = [
    'Jinja2==2.6',
    'clint2==0.3.2',
    'sh==1.08',
    'six==1.3.0',
]

test_requires = [
    'mock==1.0.1',
    'tox==1.4.3',
    'nose==1.3',
    'spec==0.11.1',
    'coverage==3.6',
]

dev_requires = test_requires + [
    'ipdb==0.7',
    'ipython==0.13.2',
    'Sphinx==1.1.3',
    'flake8==2.0',
]

setup(
    name='facio',
    version=__version__,
    author='Christopher John Reeves',
    author_email='hello@chris.reeves.io',
    url='https://github.com/krak3n/facio',
    description='Project scaffolding using custom templates.',
    long_description=read('README.rst'),
    package_dir={'': 'src'},
    packages=find_packages('src'),
    scripts=['src/facio/bin/facio'],
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    test_suite='runtests.runtests',
    extras_require={
        'tests': test_requires,
        'develop': dev_requires,
    },
    classifiers=[
        'Environment :: Console',
        'Development Status :: 5 - Production/Stable',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Intended Audience :: Developers',
        'Operating System :: Unix',
        'License :: OSI Approved :: BSD License',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    license='BSD',
)
<|endoftext|>


<commit_before>"""
archvyrt setup module.
"""

from setuptools import setup, find_packages
from os import path

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

setup(
    name='archvyrt',
    version='0.3.3',
    description='libvirt provisioner for archlinux libvirt hosts',
    url='https://github.com/andrekeller/archvyrt',
    author='Andre Keller',
    author_email='ak@0x2a.io',
    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: System Administrators',
        'Topic :: System :: Systems Administration',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
    ],

    packages=find_packages(),
    install_requires=[
        'libvirt-python'
    ],

    entry_points={
        'console_scripts': [
            'archvyrt = archvyrt:main',
        ],
    },

)
<commit_msg>Release 0.3.4<commit_after>"""
archvyrt setup module.
"""

from setuptools import setup, find_packages
from os import path

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

setup(
    name='archvyrt',
    version='0.3.4',
    description='libvirt provisioner for archlinux libvirt hosts',
    url='https://github.com/andrekeller/archvyrt',
    author='Andre Keller',
    author_email='ak@0x2a.io',
    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: System Administrators',
        'Topic :: System :: Systems Administration',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
    ],

    packages=find_packages(),
    install_requires=[
        'libvirt-python'
    ],

    entry_points={
        'console_scripts': [
            'archvyrt = archvyrt:main',
        ],
    },

)
<|endoftext|>


<commit_before>import re
from setuptools import Command
from setuptools import find_packages
from setuptools import setup
import subprocess
try:
    # Python 2 backwards compat
    from __builtin__ import raw_input as input
except ImportError:
    pass

def read_module_contents():
    with open('version.py') as app_init:
        return app_init.read()

def read_spec_contents():
    with open('tendrl-node-agent.spec') as spec:
        return spec.read()

module_file = read_module_contents()
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
version = metadata['version']

class BumpVersionCommand(Command):
    """Bump the __version__ number and commit all changes."""

    user_options = [('version=', 'v', 'version number to use')]

    def initialize_options(self):
        new_version = metadata['version'].split('.')
        new_version[-1] = str(int(new_version[-1]) + 1)  # Bump the final part
        self.version = ".".join(new_version)

    def finalize_options(self):
        pass

    def run(self):

        print('old version: %s  new version: %s' %
              (metadata['version'], self.version))
        try:
            input('Press enter to confirm, or ctrl-c to exit >')
        except KeyboardInterrupt:
            raise SystemExit("\nNot proceeding")

        old = "__version__ = '%s'" % metadata['version']
        new = "__version__ = '%s'" % self.version
        module_content = read_module_contents()
        with open('version.py', 'w') as fileh:
            fileh.write(module_content.replace(old, new))

        old = 'Version: %s' % metadata['version']
        new = 'Version: %s' % self.version
        spec_file = read_spec_contents()
        with open('tendrl-node-agent.spec', 'w') as fileh:
            fileh.write(spec_file.replace(old, new))

        # Commit everything with a standard commit message
        cmd = ['git', 'commit', '-a', '-m', 'version %s' % self.version]
        print(' '.join(cmd))
        subprocess.check_call(cmd)

class ReleaseCommand(Command):
    """Tag and push a new release."""

    user_options = [('sign', 's', 'GPG-sign the Git tag and release files')]

    def initialize_options(self):
        self.sign = False

    def finalize_options(self):
        pass

    def run(self):
        # Create Git tag
        tag_name = 'v%s' % version
        cmd = ['git', 'tag', '-a', tag_name, '-m', 'version %s' % version]
        if self.sign:
            cmd.append('-s')
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push Git tag to origin remote
        cmd = ['git', 'push', 'origin', tag_name]
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push package to pypi
        # cmd = ['python', 'setup.py', 'sdist', 'upload']
        # if self.sign:
        #    cmd.append('--sign')
        # print(' '.join(cmd))
        # subprocess.check_call(cmd)

setup(
    name="tendrl-node-agent",
    version=version,
    packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*",
                                    "tests"]),
    namespace_packages=['tendrl'],
    url="http://www.redhat.com",
    author="Rohan Kanade.",
    author_email="rkanade@redhat.com",
    license="LGPL-2.1+",
    zip_safe=False,
    install_requires=[
        "netaddr",
        "netifaces",
        "tendrl-commons",
        "urllib3",
        ],
    entry_points={
        'console_scripts': [
            'tendrl-node-agent = tendrl.node_agent.manager:main',
            'tendrl_monitoring_config_manager = tendrl.node_agent.monitoring.collectd.commands.config_manager:main'
        ]
    },
    include_package_data=True,
    cmdclass={'bumpversion': BumpVersionCommand, 'release': ReleaseCommand},
)
<commit_msg>Update setup.py<commit_after>import re
from setuptools import Command
from setuptools import find_packages
from setuptools import setup
import subprocess
try:
    # Python 2 backwards compat
    from __builtin__ import raw_input as input
except ImportError:
    pass

def read_module_contents():
    with open('version.py') as app_init:
        return app_init.read()

def read_spec_contents():
    with open('tendrl-node-agent.spec') as spec:
        return spec.read()

module_file = read_module_contents()
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
version = metadata['version']

class BumpVersionCommand(Command):
    """Bump the __version__ number and commit all changes."""

    user_options = [('version=', 'v', 'version number to use')]

    def initialize_options(self):
        new_version = metadata['version'].split('.')
        new_version[-1] = str(int(new_version[-1]) + 1)  # Bump the final part
        self.version = ".".join(new_version)

    def finalize_options(self):
        pass

    def run(self):

        print('old version: %s  new version: %s' %
              (metadata['version'], self.version))
        try:
            input('Press enter to confirm, or ctrl-c to exit >')
        except KeyboardInterrupt:
            raise SystemExit("\nNot proceeding")

        old = "__version__ = '%s'" % metadata['version']
        new = "__version__ = '%s'" % self.version
        module_content = read_module_contents()
        with open('version.py', 'w') as fileh:
            fileh.write(module_content.replace(old, new))

        old = 'Version: %s' % metadata['version']
        new = 'Version: %s' % self.version
        spec_file = read_spec_contents()
        with open('tendrl-node-agent.spec', 'w') as fileh:
            fileh.write(spec_file.replace(old, new))

        # Commit everything with a standard commit message
        cmd = ['git', 'commit', '-a', '-m', 'version %s' % self.version]
        print(' '.join(cmd))
        subprocess.check_call(cmd)

class ReleaseCommand(Command):
    """Tag and push a new release."""

    user_options = [('sign', 's', 'GPG-sign the Git tag and release files')]

    def initialize_options(self):
        self.sign = False

    def finalize_options(self):
        pass

    def run(self):
        # Create Git tag
        tag_name = 'v%s' % version
        cmd = ['git', 'tag', '-a', tag_name, '-m', 'version %s' % version]
        if self.sign:
            cmd.append('-s')
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push Git tag to origin remote
        cmd = ['git', 'push', 'origin', tag_name]
        print(' '.join(cmd))
        subprocess.check_call(cmd)

        # Push package to pypi
        # cmd = ['python', 'setup.py', 'sdist', 'upload']
        # if self.sign:
        #    cmd.append('--sign')
        # print(' '.join(cmd))
        # subprocess.check_call(cmd)

setup(
    name="tendrl-node-agent",
    version=version,
    packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*",
                                    "tests"]),
    namespace_packages=['tendrl'],
    url="http://www.redhat.com",
    author="Rohan Kanade.",
    author_email="rkanade@redhat.com",
    license="LGPL-2.1+",
    zip_safe=False,
    install_requires=[
        "netaddr",
        "netifaces",
        "tendrl-commons",
        "urllib3",
        ],
    entry_points={
        'console_scripts': [
            'tendrl-node-agent = tendrl.node_agent.manager:main',
            'tendrl-monitoring-config-manager = tendrl.node_agent.monitoring.collectd.commands.config_manager:main'
        ]
    },
    include_package_data=True,
    cmdclass={'bumpversion': BumpVersionCommand, 'release': ReleaseCommand},
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='sdaxen_python_utilities',
    packages=['python_utilities'],
    version='0.1.1',
    description='A collection of useful tools for common Python tasks',
    author='Seth Axen',
    author_email='seth.axen@gmail.com',
    url='https://github.com/sdaxen/python_utilities',
    download_url='https://github.com/sdaxen/python_utilities/tarball/0.1.1',
    keywords=['scripting', 'logging', 'io', 'plotting'],
    classifiers=[],
)

<commit_msg>updated version to fix pypi issues<commit_after>from distutils.core import setup

setup(
    name='sdaxen_python_utilities',
    packages=['python_utilities'],
    version='0.1.2',
    description='A collection of useful tools for common Python tasks',
    author='Seth Axen',
    author_email='seth.axen@gmail.com',
    url='https://github.com/sdaxen/python_utilities',
    download_url='https://github.com/sdaxen/python_utilities/tarball/0.1.2',
    keywords=['scripting', 'logging', 'io', 'plotting'],
    classifiers=[],
)

<|endoftext|>