From 34e31e67e16449f5990b5a2cd9ca1dd91cc6c869 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Mon, 20 Aug 2018 16:07:07 +0200 Subject: [PATCH] Improves discovery of modules --- setup.py | 5 +++-- src/bin/abgabesystem | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 5a65426..76ec21c 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from setuptools import setup, find_packages +from setuptools import setup, find_namespace_packages setup( name='abgabesystem', @@ -9,7 +9,8 @@ setup( url='https://ips1.ibr.cs.tu-bs.de/abgabesystem/abgabesystem', author='Tim Schubert', author_email='abgabesystem@timschubert.net', - packages=find_packages(), + package_dir={'': 'src'}, + packages=find_namespace_packages(where='src'), install_requires=[ 'python-gitlab', ], diff --git a/src/bin/abgabesystem b/src/bin/abgabesystem index 20d50e0..315e882 100755 --- a/src/bin/abgabesystem +++ b/src/bin/abgabesystem @@ -2,7 +2,7 @@ import gitlab import argparse -import logging +import logging as log from abgabesystem.commands import create_users, projects, deadline, plagiates, course @@ -39,14 +39,14 @@ if __name__ == '__main__': deadline_parser = subparsers.add_parser( 'deadline', - description='Sets the tags at a deadline to permanently mark it in the version history') + help='Sets the tags at a deadline to permanently mark it in the version history') deadline_parser.set_defaults(func=deadline) deadline_parser.add_argument('-t', '--tag-name', dest='tag_name') deadline_parser.add_argument('-r', '--reference', dest='reference') plagiates_parser = subparsers.add_parser( 'plagiates', - description='Runs the plagiarism checker on all solutions using a reference project as the baseline') + help='Runs the plagiarism checker on all solutions using a reference project as the baseline') plagiates_parser.set_defaults(func=plagiates) plagiates_parser.add_argument('-t', '--tag-name', dest='tag_name') plagiates_parser.add_argument('-r', '--reference', dest='reference')