FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
  • Dr Rich Wareham's avatar
    af4b6cee
    initial implementation · af4b6cee
    Dr Rich Wareham authored
    Add an initial implementation of the scheduler application. The initial
    implementation contains:
    
    * Documentation (README, an API reference and getting started guide)
    * Test harness using tox
    * docker-compose based development environment
    * A Dockerfile
    * An ingest loop for Google Sheets
    * A stub implementation of the Opencast scheduler which prints what
      events should be scheduled.
    af4b6cee
    History
    initial implementation
    Dr Rich Wareham authored
    Add an initial implementation of the scheduler application. The initial
    implementation contains:
    
    * Documentation (README, an API reference and getting started guide)
    * Test harness using tox
    * docker-compose based development environment
    * A Dockerfile
    * An ingest loop for Google Sheets
    * A stub implementation of the Opencast scheduler which prints what
      events should be scheduled.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
setup.py 649 B
import os

from setuptools import find_packages, setup


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='scheduler',
    install_requires=load_requirements(),
    packages=find_packages(),
    entry_points={
        'console_scripts': [
            'scheduler=scheduler.tool:main'
        ],
    },
)