Improves discovery of modules

This commit is contained in:
Tim Schubert 2018-08-20 16:07:07 +02:00
parent ae1eff6e4b
commit 34e31e67e1
2 changed files with 6 additions and 5 deletions

View file

@ -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',
],

View file

@ -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')