def start():
    if 'sdist' in sys.argv:
        tar('gluon/env.tar',
            ['applications', 'VERSION', 'extras/icons/splashlogo.gif'])

    setup(
        name='web2py',
        version=read_file("VERSION").split()[1],
        description="""full-stack framework for rapid development and prototyping
        of secure database-driven web-based applications, written and
        programmable in Python.""",
        long_description="""
        Everything in one package with no dependencies. Development, deployment,
        debugging, testing, database administration and maintenance of applications can
        be done via the provided web interface. web2py has no configuration files,
        requires no installation, can run off a USB drive. web2py uses Python for the
        Model, the Views and the Controllers, has a built-in ticketing system to manage
        errors, an internationalization engine, works with SQLite, PostgreSQL, MySQL,
        MSSQL, FireBird, Oracle, IBM DB2, Informix, Ingres, sybase and Google App Engine via a
        Database Abstraction Layer. web2py includes libraries to handle
        HTML/XML, RSS, ATOM, CSV, RTF, JSON, AJAX, XMLRPC, WIKI markup. Production
        ready, capable of upload/download streaming of very large files, and always
        backward compatible.
        """,
        author='Massimo Di Pierro',
        author_email='*****@*****.**',
        license='http://web2py.com/examples/default/license',
        classifiers=["Development Status :: 5 - Production/Stable"],
        url='http://web2py.com',
        platforms='Windows, Linux, Mac, Unix,Windows Mobile',
        packages=[
            'gluon',
            'gluon/contrib',
            'gluon/contrib/gateways',
            'gluon/contrib/login_methods',
            'gluon/contrib/markdown',
            'gluon/contrib/markmin',
            'gluon/contrib/memcache',
            'gluon/contrib/fpdf',
            'gluon/contrib/pymysql',
            'gluon/contrib/pyrtf',
            'gluon/contrib/pysimplesoap',
            'gluon/contrib/pg8000',
            'gluon/contrib/plural_rules',
            'gluon/contrib/minify',
            'gluon/contrib/pyaes',
            'gluon/contrib/pyuca',
            'gluon/tests',
        ],
        package_data={'gluon': ['env.tar']},
        #          scripts=['w2p_apps', 'w2p_run', 'w2p_clone'],
    )
Ejemplo n.º 2
0
def start():
    if 'sdist' in sys.argv:
        tar('gluon/env.tar', ['applications', 'VERSION',
                              'extras/icons/splashlogo.gif'])

    setup(name='web2py',
          version=read_file("VERSION").split()[1],
          description="""full-stack framework for rapid development and prototyping
        of secure database-driven web-based applications, written and
        programmable in Python.""",
          long_description="""
        Everything in one package with no dependencies. Development, deployment,
        debugging, testing, database administration and maintenance of applications can
        be done via the provided web interface. web2py has no configuration files,
        requires no installation, can run off a USB drive. web2py uses Python for the
        Model, the Views and the Controllers, has a built-in ticketing system to manage
        errors, an internationalization engine, works with SQLite, PostgreSQL, MySQL,
        MSSQL, FireBird, Oracle, IBM DB2, Informix, Ingres, sybase and Google App Engine via a
        Database Abstraction Layer. web2py includes libraries to handle
        HTML/XML, RSS, ATOM, CSV, RTF, JSON, AJAX, XMLRPC, WIKI markup. Production
        ready, capable of upload/download streaming of very large files, and always
        backward compatible.
        """,
          author='Massimo Di Pierro',
          author_email='*****@*****.**',
          license='http://web2py.com/examples/default/license',
          classifiers=["Development Status :: 5 - Production/Stable"],
          url='http://web2py.com',
          platforms='Windows, Linux, Mac, Unix,Windows Mobile',
          packages=['gluon',
                    'gluon/contrib',
                    'gluon/contrib/gateways',
                    'gluon/contrib/login_methods',
                    'gluon/contrib/markdown',
                    'gluon/contrib/markmin',
                    'gluon/contrib/memcache',
                    'gluon/contrib/fpdf',
                    'gluon/contrib/pymysql',
                    'gluon/contrib/pyrtf',
                    'gluon/contrib/pysimplesoap',
                    'gluon/contrib/pg8000',
                    'gluon/contrib/plural_rules',
                    'gluon/contrib/minify',
                    'gluon/contrib/pyaes',
                    'gluon/contrib/pyuca',
                    'gluon/tests',
                    ],
          package_data={'gluon': ['env.tar']},
#          scripts=['w2p_apps', 'w2p_run', 'w2p_clone'],
          )
Ejemplo n.º 3
0
def pack():
    """ Compact the application """

    try:
        app = request.args[0]
        filename = apath('../deposit/%s.tar' % app)
        tar(filename, apath(app), '^[\w\.\-]+$')
    except Exception:
        session.flash = T('internal error')
        redirect(URL(r=request, f='site'))

    response.headers['Content-Type'] = 'application/x-tar'

    header = 'attachment; filename=web2py.app.%s.tar' % app
    response.headers['Content-Disposition'] = header

    return open(filename, 'rb').read()
Ejemplo n.º 4
0
def pack():
    """ Compact the application """

    try:
        app = request.args[0]
        filename = apath('../deposit/%s.tar' % app)
        tar(filename, apath(app), '^[\w\.\-]+$')
    except Exception:
        session.flash = T('internal error')
        redirect(URL(r=request, f='site'))

    response.headers['Content-Type'] = 'application/x-tar'

    header = 'attachment; filename=web2py.app.%s.tar' % app
    response.headers['Content-Disposition'] = header

    return open(filename, 'rb').read()
Ejemplo n.º 5
0
def tar(file, filelist, expression='^.+$'):
    """
    tars dir/files into file, only tars file that match expression
    """

    tar = tarfile.TarFile(file, 'w')
    for element in filelist:
        try:
            for file in listdir(element, expression, add_dirs=True):
                tar.add(os.path.join(element, file), file, False)
        except:
            tar.add(element)
    tar.close()

if 'sdist' in sys.argv:
    tar('gluon/env.tar',['applications','VERSION','splashlogo.gif'])


setup(name='web2py',
        version=open("VERSION").read().split()[1],
        description="""full-stack framework for rapid development and prototyping
        of secure database-driven web-based applications, written and
        programmable in Python.""",
        long_description="""
        Everything in one package with no dependencies. Development, deployment,
        debugging, testing, database administration and maintenance of applications can
        be done via the provided web interface. web2py has no configuration files,
        requires no installation, can run off a USB drive. web2py uses Python for the
        Model, the Views and the Controllers, has a built-in ticketing system to manage
        errors, an internationalization engine, works with SQLite, PostgreSQL, MySQL,
        MSSQL, FireBird, Oracle, IBM DB2, Informix, Ingres, sybase and Google App Engine via a