setup.py 1.62 KB
import os
import sys
import subprocess
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()

requires=[
    "opensipkd.base",
    "opensipkd.pasar.models",
    "xmltodict"

]

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

if sys.argv[1:] and sys.argv[1] == 'develop-use-pip':
    bin_ = os.path.split(sys.executable)[0]
    pip = os.path.join(bin_, 'pip')
    for package in requires:
        cmd = [pip, 'install', package]
        subprocess.call(cmd)
    cmd = [sys.executable, sys.argv[0], 'develop']
    subprocess.call(cmd)
    sys.exit()

setup(
    name='agratek.backoffice',
    version='0.1.0',
    url='',
    license='',
    description='AgraTek Backoffice for merchants',
    long_description=README + '\n\n' +  CHANGES,
    author='',
    author_email='',
    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'},
    # namespace_packages=['opensipkd',],
    include_package_data=True,
    zip_safe=False,
    install_requires=requires,
    tests_require=requires,
    extras_require={
        'dev': dev_requires,
    },

    test_suite="agratek.backoffice.test",
    entry_points="""\
      [console_scripts]
      initialize_agratek_api_merchant_db = agratek.api.backoffice.scripts.initializedb:main
      """,
 )