Exemplo n.º 1
0
CLUTTER_PATTERNS = [
    'libsver.*'
]

if six.PY2:
    INSTALL_REQUIRES += ['functools32 >= 3.2.3-1']

if __name__ == '__main__':
    kwargs = util_setup.setuptools_setup(
        setup_fpath=__file__,
        name='vtool',
        packages=util_setup.find_packages(),
        version=util_setup.parse_package_for_version('vtool'),
        license=util_setup.read_license('LICENSE'),
        long_description=util_setup.parse_readme('README.md'),
        ext_modules=util_setup.find_ext_modules(),
        cmdclass=util_setup.get_cmdclass(),
        description=('Vision tools - tools for computer vision'),
        url='https://github.com/Erotemic/vtool',
        author='Jon Crall',
        author_email='*****@*****.**',
        keywords='',
        install_requires=INSTALL_REQUIRES,
        clutter_patterns=CLUTTER_PATTERNS,
        # package_data={'build': ut.get_dynamic_lib_globstrs()},
        # build_command=lambda: ut.Repo(dirname(__file__)),
        build_command=lambda: ut.std_build_command(),
        classifiers=[],
    )
    setup(**kwargs)
Exemplo n.º 2
0
def utool_setup():
    INSTALL_REQUIRES = [
        'six >= 1.8.0',
        'psutil >= 2.1.3',
        'parse >= 1.6.6',
        #'numpy >= 1.8.0',  # TODO REMOVE DEPENDENCY
        'numpy',  # 1.10 has hard time in comparison
        'pyparsing',
        'pint',
        #'decorator',
    ]
    import platform

    if platform.python_version().startswith('2.7'):
        INSTALL_REQUIRES += [
            'lockfile >= 0.10.2',
        ]

    INSTALL_OPTIONAL = [
        'autopep8',
        'astor',
        'pyperclip >= 1.5.7',
        'pyfiglet >= 0.7.2',
        'boto'
        #pip install pygments-markdown-lexer
    ]

    #REQUIRES_LINKS = [
    #]

    #OPTIONAL_DEPENDS_LINKS = [
    #    #'git+https://github.com/amitdev/lru-dict',  # TODO REMOVE DEPENDENCY
    #    #'git+https://github.com/pwaller/pyfiglet',

    #]

    INSTALL_OPTIONAL_DEV = [  # NOQA
        'lru-dict >= 1.1.1',  # import as lru
        'guppy',
        'sphinx',
        'setproctitle',
        'sphinxcontrib-napoleon',
        'objgraph',
        'h5py',
        'delorean',
    ]

    # format optional dependencies
    INSTALL_EXTRA = {item.split(' ')[0]: item for item in INSTALL_OPTIONAL}

    # TODO: remove optional depends
    #INSTALL_OPTIONAL += INSTALL_OPTIONAL_DEV
    #INSTALL_REQUIRES += INSTALL_OPTIONAL

    try:
        # HACK: Please remove someday
        from utool import util_setup
        import utool
        from os.path import dirname
        for arg in iter(sys.argv[:]):
            # Clean clutter files
            if arg in ['clean']:
                clutter_dirs = ['cyth']
                CLUTTER_PATTERNS = [
                    '\'',
                    'cyth',
                    '*.dump.txt',
                    '*.sqlite3',
                    '*.prof',
                    '*.prof.txt',
                    '*.lprof',
                    '*.ln.pkg',
                    'failed.txt',
                    'failed_doctests.txt',
                    'failed_shelltests.txt',
                    'test_pyflann_index.flann',
                    'test_pyflann_ptsdata.npz',
                    '_timeings.txt',
                    'timeings.txt',
                    'Tgen.sh',
                    'raw_profile.*.prof',
                    'clean_profile.*.prof',
                    'raw_profile.txt',
                    'clean_profile.txt',
                    'profile_output.*',
                ]
                utool.clean(dirname(__file__), CLUTTER_PATTERNS, clutter_dirs)
        ext_modules = util_setup.find_ext_modules()
        cmdclass = util_setup.get_cmdclass()
    except Exception as ex:
        print(ex)
        ext_modules = {}
        cmdclass = {}

    # run setuptools setup function
    setup(
        name='utool',
        packages=[
            'utool',
            'utool._internal',
            'utool.tests',
            'utool.util_scripts',
        ],
        #packages=util_setup.find_packages(),
        version=version,
        description='Useful utilities',
        url='https://github.com/Erotemic/utool',
        ext_modules=ext_modules,
        cmdclass=cmdclass,
        author='Jon Crall',
        author_email='*****@*****.**',
        keywords='',
        install_requires=INSTALL_REQUIRES,
        extras_require=INSTALL_EXTRA,
        package_data={},
        scripts=[
            # 'utool/util_scripts/makesetup.py',
            'utool/util_scripts/makeinit.py',
            #'utool/util_scripts/utprof.sh',
            #'utool/util_scripts/utprof.py',
            #'utool/util_scripts/utprof_cleaner.py',
            # 'utool/util_scripts/utoolwc.py',
            # 'utool/util_scripts/grabzippedurl.py',
            # 'utool/util_scripts/autogen_sphinx_docs.py',
            # 'utool/util_scripts/permit_gitrepo.py',
            # 'utool/util_scripts/viewdir.py',
            # 'utool/util_scripts/pipinfo.py',
        ],
        classifiers=[
            # List of classifiers available at:
            # https://pypi.python.org/pypi?%3Aaction=list_classifiers
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Developers',
            'Topic :: Software Development :: Libraries :: Python Modules',
            'Topic :: Utilities',
            # This should be interpreted as Apache License v2.0
            'License :: OSI Approved :: Apache Software License',
            # Supported Python versions
            'Programming Language :: Python :: 2.7',
            'Programming Language :: Python :: 3',
        ],
    )
Exemplo n.º 3
0
#!/usr/bin/env python2.7
from __future__ import absolute_import, division, print_function
from setuptools import setup
from utool import util_setup
"""
python setup.py build_ext --inplace
python setup.py develop
"""

ext_modules = util_setup.find_ext_modules(disable_warnings=True)

#import os
#os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'

INSTALL_REQUIRES = [
    #'PyQt 4/5'  # non pipi index
]

if __name__ == '__main__':

    kwargs = util_setup.setuptools_setup(
        name='guitool',
        packages=['guitool', 'guitool.__PYQT__'],
        description=('Guitool - tools pyqt4 guis'),
        url='https://github.com/Erotemic/guitool',
        ext_modules=ext_modules,
        cmdclass=util_setup.get_cmdclass(),
        keywords='',
        package_data={},
        classifiers=[],
Exemplo n.º 4
0
if six.PY2:
    INSTALL_REQUIRES.append('requests >= 0.8.2')

INSTALL_REQUIRES += INSTALL_OPTIONAL


if __name__ == '__main__':
    print('[setup] Entering IBEIS setup')
    kwargs = util_setup.setuptools_setup(
        setup_fpath=__file__,
        name='ibeis',
        author='Jon Crall, Jason Parham',
        author_email='*****@*****.**',
        packages=util_setup.find_packages(),
        version=util_setup.parse_package_for_version('ibeis'),
        license=util_setup.read_license('LICENSE'),
        long_description=util_setup.parse_readme('README.md'),
        ext_modules=util_setup.find_ext_modules(),
        cmdclass=util_setup.get_cmdclass(),
        project_dirs=PROJECT_DIRS,
        chmod_patterns=CHMOD_PATTERNS,
        clutter_patterns=CLUTTER_PATTERNS,
        clutter_dirs=CLUTTER_DIRS,
        install_requires=INSTALL_REQUIRES,
        scripts=[
            '_scripts/ibeis'
        ],
        #cython_files=CYTHON_FILES,
    )
    setup(**kwargs)
Exemplo n.º 5
0
def utool_setup():
    INSTALL_REQUIRES = [
        'six >= 1.8.0',
        'psutil >= 2.1.3',
        'parse >= 1.6.6',
        #'numpy >= 1.8.0',  # TODO REMOVE DEPENDENCY
        'numpy',  # 1.10 has hard time in comparison
        'pyparsing',
        #'decorator',
    ]
    import platform

    if platform.python_version().startswith('2.7'):
        INSTALL_REQUIRES += [
            'lockfile >= 0.10.2',
        ]

    INSTALL_OPTIONAL = [
        'autopep8', 'astor', 'pyperclip >= 1.5.7', 'pyfiglet >= 0.7.2', 'boto'
        #pip install pygments-markdown-lexer
    ]

    #REQUIRES_LINKS = [
    #]

    #OPTIONAL_DEPENDS_LINKS = [
    #    #'git+https://github.com/amitdev/lru-dict',  # TODO REMOVE DEPENDENCY
    #    #'git+https://github.com/pwaller/pyfiglet',

    #]

    INSTALL_OPTIONAL_DEV = [  # NOQA
        'lru-dict >= 1.1.1',  # import as lru
        'guppy',
        'sphinx',
        'setproctitle',
        'sphinxcontrib-napoleon',
        'objgraph',
        'h5py',
        'delorean',
    ]

    # format optional dependencies
    INSTALL_EXTRA = {item.split(' ')[0]: item for item in INSTALL_OPTIONAL}

    # TODO: remove optional depends
    #INSTALL_OPTIONAL += INSTALL_OPTIONAL_DEV
    #INSTALL_REQUIRES += INSTALL_OPTIONAL

    try:
        # HACK: Please remove someday
        from utool import util_setup
        import utool
        from os.path import dirname
        for arg in iter(sys.argv[:]):
            # Clean clutter files
            if arg in ['clean']:
                clutter_dirs = ['cyth']
                CLUTTER_PATTERNS = [
                    '\'',
                    'cyth',
                    '*.dump.txt',
                    '*.sqlite3',
                    '*.prof',
                    '*.prof.txt',
                    '*.lprof',
                    '*.ln.pkg',
                    'failed.txt',
                    'failed_doctests.txt',
                    'failed_shelltests.txt',
                    'test_pyflann_index.flann',
                    'test_pyflann_ptsdata.npz',
                    '_timeings.txt',
                    'timeings.txt',
                    'Tgen.sh',
                    'raw_profile.*.prof',
                    'clean_profile.*.prof',
                    'raw_profile.txt',
                    'clean_profile.txt',
                ]
                utool.clean(dirname(__file__), CLUTTER_PATTERNS, clutter_dirs)
        ext_modules = util_setup.find_ext_modules()
        cmdclass = util_setup.get_cmdclass()
    except Exception as ex:
        print(ex)
        ext_modules = {}
        cmdclass = {}

    # run setuptools setup function
    setup(
        name='utool',
        packages=[
            'utool',
            'utool._internal',
            'utool.tests',
            'utool.util_scripts',
        ],
        #packages=util_setup.find_packages(),
        version=version,
        download_url=get_tarball_download_url(version),
        description='Univerally useful utility tools for you!',
        url='https://github.com/Erotemic/utool',
        ext_modules=ext_modules,
        cmdclass=cmdclass,
        author='Jon Crall',
        author_email='*****@*****.**',
        keywords='',
        install_requires=INSTALL_REQUIRES,
        extras_require=INSTALL_EXTRA,
        package_data={},
        scripts=[
            'utool/util_scripts/makesetup.py',
            'utool/util_scripts/makeinit.py',
            #'utool/util_scripts/utprof.sh',
            #'utool/util_scripts/utprof.py',
            #'utool/util_scripts/utprof_cleaner.py',
            'utool/util_scripts/utoolwc.py',
            'utool/util_scripts/grabzippedurl.py',
            'utool/util_scripts/autogen_sphinx_docs.py',
            'utool/util_scripts/permit_gitrepo.py',
            'utool/util_scripts/viewdir.py',
        ],
        classifiers=[],
    )
Exemplo n.º 6
0
#!/usr/bin/env python2.7
from __future__ import absolute_import, division, print_function
from setuptools import setup
from utool import util_setup
"""
python setup.py build_ext --inplace
python setup.py develop
"""

ext_modules = util_setup.find_ext_modules(disable_warnings=True)

#import os
#os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'

INSTALL_REQUIRES = [
    #'PyQt 4/5'  # non pipi index
]

if __name__ == '__main__':

    kwargs = util_setup.setuptools_setup(
        name='guitool',
        packages=['guitool', 'guitool.__PYQT__'],
        description=('Guitool - tools pyqt4 guis'),
        url='https://github.com/Erotemic/guitool',
        ext_modules=ext_modules,
        cmdclass=util_setup.get_cmdclass(),
        keywords='',
        package_data={},
        classifiers=[],
Exemplo n.º 7
0
def utool_setup():
    INSTALL_REQUIRES = [
        'six >= 1.8.0',
        'psutil >= 2.1.3',
        'parse >= 1.6.6',
        'lockfile >= 0.10.2',
        #'numpy >= 1.8.0',  # TODO REMOVE DEPENDENCY
        'numpy',  # 1.10 has hard time in comparison
        #'decorator',
    ]

    INSTALL_OPTIONAL = [
        'astor',
        'sphinx',
        'sphinxcontrib-napoleon',
        'pyperclip >= 1.5.7',
        'pyfiglet >= 0.7.2',
        'lru-dict >= 1.1.1',  # import as lru
    ]

    #REQUIRES_LINKS = [
    #]

    #OPTIONAL_DEPENDS_LINKS = [
    #    #'git+https://github.com/amitdev/lru-dict',  # TODO REMOVE DEPENDENCY
    #    #'git+https://github.com/pwaller/pyfiglet',

    #]

    INSTALL_OPTIONAL_EXTRA = [  # NOQA
        'guppy',
        'objgraph',
    ]

    # format optional dependencies
    INSTALL_EXTRA = {item.split(' ')[0]: item for item in INSTALL_OPTIONAL}

    # TODO: remove optional depends
    #INSTALL_OPTIONAL += INSTALL_OPTIONAL_EXTRA
    #INSTALL_REQUIRES += INSTALL_OPTIONAL

    try:
        # HACK: Please remove someday
        from utool import util_setup
        import utool
        from os.path import dirname
        for arg in iter(sys.argv[:]):
            # Clean clutter files
            if arg in ['clean']:
                clutter_dirs = ['cyth']
                CLUTTER_PATTERNS = [
                    '\'',
                    'cyth',
                    '*.dump.txt',
                    '*.sqlite3',
                    '*.prof',
                    '*.prof.txt',
                    '*.lprof',
                    '*.ln.pkg',
                    'failed.txt',
                    'failed_doctests.txt',
                    'failed_shelltests.txt',
                    'test_pyflann_index.flann',
                    'test_pyflann_ptsdata.npz',
                    '_test_times.txt',
                    'test_times.txt',
                    'Tgen.sh',
                ]
                utool.clean(dirname(__file__), CLUTTER_PATTERNS, clutter_dirs)
        ext_modules = util_setup.find_ext_modules()
        cmdclass = util_setup.get_cmdclass()
    except Exception as ex:
        print(ex)
        ext_modules = {}
        cmdclass = {}

    # run setuptools setup function
    setup(
        name='utool',
        packages=[
            'utool',
            'utool._internal',
            'utool.tests',
            'utool.util_scripts',
        ],
        #packages=util_setup.find_packages(),
        version=version,
        download_url=get_tarball_download_url(version),
        description='Univerally useful utility tools for you!',
        url='https://github.com/Erotemic/utool',
        ext_modules=ext_modules,
        cmdclass=cmdclass,
        author='Jon Crall',
        author_email='*****@*****.**',
        keywords='',
        install_requires=INSTALL_REQUIRES,
        extras_require=INSTALL_EXTRA,
        package_data={},
        scripts=[
            'utool/util_scripts/makesetup.py',
            'utool/util_scripts/makeinit.py',
            'utool/util_scripts/utprof.sh',
            'utool/util_scripts/utprof.py',
            'utool/util_scripts/utprof_cleaner.py',
            'utool/util_scripts/utoolwc.py',
            'utool/util_scripts/grabzippedurl.py',
            'utool/util_scripts/autogen_sphinx_docs.py',
            'utool/util_scripts/permit_gitrepo.py',
            'utool/util_scripts/viewdir.py',
        ],
        classifiers=[],
    )