setup.py.ori 1.86 KB
import os
import sys
from setuptools import (
    setup,
    find_packages,
)

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
    README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
    CHANGES = f.read()

line = CHANGES.splitlines()[0]
version = line.split()[0]

requires = [
    'pyramid',
    'pyramid_tm',
    'SQLAlchemy',
    'transaction',
    'zope.sqlalchemy==1.1',
    'waitress',
    'ziggurat-foundations',
    'colander',
    'deform >= 2.0a2',
    'pyramid_chameleon',
    'psycopg2-binary',
    'alembic >= 0.3.4',
    'pyramid_beaker',
    'pytz',
    'paste',
    'webhelpers',
    'bcrypt',
    'pyramid_rpc',
    'sqlalchemy-datatables',
    'requests',
    'z3c.rml',
    'py3o.template',
    'wheezy.captcha',
    # 'pyBarcode',
    'unoconv',
    'google-api-python-client',
    # 'pyramid_xmlrpc',
    'pyramid_mailer', 'zope'
]

dev_requires = [
    'pyramid_debugtoolbar',
    'pytest',
]

setup(
    name='opensipkd_base',
    version=version,
    description='Basis Aplikasi openSIPKD',
    long_description=README + '\n\n' + CHANGES,
    author='Agus Gustiana',
    author_email='aa.gustiana@gmail.com',
    classifiers=[
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],

    keywords='web pyramid pylons',
    # package=find_packages('src'),
    # package_dir={'': 'src'},
    include_package_data=True,
    zip_safe=False,
    install_requires=requires,
    tests_require=requires,
    extras_require={
        'dev': dev_requires,
    },
    # test_suite="opensipkd.base.test",
    entry_points="""\
      [paste.app_factory]
      main = opensipkd.base:main
      [console_scripts]
      initialize_opensipkd_db = opensipkd.base.scripts.initializedb:main
      """,
)