src/setup.py
author ymh <ymh.work@gmail.com>
Sat, 30 Jun 2018 00:53:04 +0200
changeset 10 279cf4baffeb
parent 1 3b0a8a6e685e
child 20 ed6040bbecc6
permissions -rw-r--r--
Increment version to 0.1.1 after iconolab version increment
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import os
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from setuptools import setup
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
from distutils.command.install_data import install_data
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
from distutils.command.install import INSTALL_SCHEMES
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
import sys
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
class osx_install_data(install_data):
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    # which is wrong. Python 2.5 supplied with MacOS 10.5 has an Apple-specific fix
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    # for this in distutils.command.install_data#306. It fixes install_lib but not
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    # install_data, which is why we roll our own install_data class.
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    def finalize_options(self):
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
        # By the time finalize_options is called, install.install_lib is set to the
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
        # fixed directory, so we set the installdir to install_lib. The
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
        # install_data class uses ('install_data', 'install_dir') instead.
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
        self.set_undefined_options('install', ('install_lib', 'install_dir'))
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        install_data.finalize_options(self)
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
def fullsplit(path, result=None):
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    """
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    Split a pathname into components (the opposite of os.path.join) in a
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
    platform-neutral way.
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
    """
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
    if result is None:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
        result = []
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    head, tail = os.path.split(path)
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
    if head == '':
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
        return [tail] + result
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
    if head == path:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
        return result
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
    return fullsplit(head, [tail] + result)
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
def launch_setup(script_name, script_args):
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
    if sys.platform == "darwin":
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
        cmdclasses = {'install_data': osx_install_data}
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
    else:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
        cmdclasses = {'install_data': install_data}
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
    root_dir = os.path.dirname(__file__)
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
    if root_dir != '':
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
        os.chdir(root_dir)
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
    source_dirs = ['iconolab_episteme',]
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
    version_variables = {}
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
    try:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
        with open(os.path.join(source_dirs[0], "__init__.py")) as f:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
            code = compile(f.read(), "__init__.py", 'exec')
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
            exec(code, version_variables)
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
    except:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
        pass
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
    version = version_variables['__version__']
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
    packages, data_files = [], []
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
    for source_dir in source_dirs:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
        for dirpath, dirnames, filenames in os.walk(source_dir):
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
            # Ignore dirnames that start with '.'
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
            for i, dirname in enumerate(dirnames):
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
                if dirname.startswith('.') or dirname.startswith('__pycache__'): del dirnames[i]
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
            if '__init__.py' in filenames:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
                packages.append('.'.join(fullsplit(dirpath)))
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
            elif filenames:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
                data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
    # Tell distutils to put the data_files in platform-specific installation
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
    # locations. See here for an explanation:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
    # http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
    for scheme in INSTALL_SCHEMES.values():
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
        scheme['data'] = scheme['purelib']
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
    # Small hack for working with bdist_wininst.
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
    # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
    if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
        for file_info in data_files:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
            file_info[0] = '\\PURELIB\\%s' % file_info[0]
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
    #write MANIFEST.in
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
    with open("MANIFEST.in", "w") as m:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
        m.write("include CHANGES\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
        m.write("include LICENSE\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
        m.write("include README.md\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
        m.write("include MANIFEST.in\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
        m.write("include requirements/base.txt\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
        m.write("include requirements/dev.txt\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
        m.write("include requirements/prod.txt\n")
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
        for entry in data_files:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
            file_list = entry[1]
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
            for filename in file_list:
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
                m.write("include %s\n" % (filename))
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
    return setup(
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
        script_name=script_name,
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
        script_args=script_args,
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
        name='iconolab_episteme',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   102
        version=version,
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   103
        author='IRI',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
        author_email='contact@iri.centrepompidou.fr',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   105
        packages=packages,
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   106
        data_files=data_files,
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   107
        cmdclass=cmdclasses,
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
        scripts=[],
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
        url='http://www.iri.centrepompidou.fr/dev/hg/iconolab_episteme',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
        license='LICENSE',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
        description='projet Iconolab for Episteme',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
        long_description="Projet Iconolab for Episteme",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
        classifiers=[
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
            'Development Status :: 4 - Beta',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
            'Environment :: Web Environment',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
            'Framework :: Django',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
            'Intended Audience :: Developers',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
            'License :: Ceccil-B',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
            'Operating System :: OS Independent',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
            'Programming Language :: Python',
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
            'Topic :: Utilities'
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
        ],
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   123
        setup_requires=['setuptools_scm'],
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   124
        install_requires=[
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   125
            "Django >= 2.0",
10
279cf4baffeb Increment version to 0.1.1 after iconolab version increment
ymh <ymh.work@gmail.com>
parents: 1
diff changeset
   126
            "iconolab == 0.1.4",
1
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   127
            "django-appconf",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   128
            "django-comments-xtd",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   129
            "django-contrib-comments",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   130
            "elasticsearch-dsl >= 6.0, < 7.0",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   131
            "django-elasticsearch-dsl",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   132
            "django-notifications-hq",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   133
            "elasticsearch",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
            "jsonfield",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   135
            "Pillow",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   136
            "pytz",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   137
            "requests",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   138
            "six",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   139
            "sorl-thumbnail >= 12.4.1",
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   140
            "djangorestframework >= 3.8"
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   141
        ],
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   142
    )
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   143
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   144
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   145
if __name__ == "__main__":
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   146
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   147
    script_name = os.path.basename(sys.argv[0])
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   148
    script_args = sys.argv[1:]
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   149
3b0a8a6e685e * Move importcollection and importmetacategories commands to the generic project
ymh <ymh.work@gmail.com>
parents:
diff changeset
   150
    launch_setup(script_name, script_args)