FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
setup.py 770 B
Newer Older
Dr Rich Wareham's avatar
Dr Rich Wareham committed
import os

from setuptools import setup, find_packages


def load_requirements():
    """
    Load requirements file and return non-empty, non-comment lines with leading and trailing
    whitespace stripped.
    """
    with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
        return [
            line.strip() for line in f
            if line.strip() != '' and not line.strip().startswith('#')
        ]


setup(
    name='gsuitesync',
Dr Rich Wareham's avatar
Dr Rich Wareham committed
    packages=find_packages(),
    install_requires=load_requirements(),
    entry_points={
        'console_scripts': [
            'gsuitesync=gsuitesync:main',
        ]
    },
    extras_require={
        ':python_version < "3.7"': [
            'dataclasses',
        ],
    }
)