wonderbeyond
5/9/2017 - 8:00 AM

Python packaging file(setup.py) example

Python packaging file(setup.py) example

from setuptools import setup, find_packages

setup(
    name='awesome',
    version='0.0.1',
    description='Awesome tools.',
    author='w',
    author_email='w@w.py',
    url='https://bitbucket.org/w/awesome',
    packages=find_packages(exclude=['contrib', 'docs', 'tests']),
    install_requires=[
        'SQLAlchemy~=1.1.9',
        'psycopg2~=2.7.1',
        'marshmallow~=2.13.4',
        'marshmallow-sqlalchemy~=0.13.1',
    ],
    entry_points={
        'console_scripts': [
            'awesome-x = tools.x:main',
        ],
    },
)