Skip to content
Snippets Groups Projects
setup.py 1.62 KiB
Newer Older
  • Learn to ignore specific revisions
  • tuhe's avatar
    tuhe committed
    # Use this guide:
    # https://packaging.python.org/tutorials/packaging-projects/
    # from unitgrade2.version import __version__
    
    tuhe's avatar
    tuhe committed
    import setuptools
    
    tuhe's avatar
    tuhe committed
    # with open("src/unitgrade2/version.py", "r", encoding="utf-8") as fh:
    #     __version__ = fh.read().split(" = ")[1].strip()[1:-1]
    # long_description = fh.read()
    
    tuhe's avatar
    tuhe committed
    
    with open("README.md", "r", encoding="utf-8") as fh:
        long_description = fh.read()
    
    
    tuhe's avatar
    tuhe committed
    setuptools.setup(
        name="codesnipper",
        version="0.0.1",
    
    tuhe's avatar
    tuhe committed
        author="Tue Herlau",
        author_email="tuhe@dtu.dk",
    
    tuhe's avatar
    tuhe committed
        description="A lightweight framework for censoring student solutions files and extracting code + output",
    
    tuhe's avatar
    tuhe committed
        long_description=long_description,
        long_description_content_type="text/markdown",
    
    tuhe's avatar
    tuhe committed
        license="MIT",
        url='https://lab.compute.dtu.dk/tuhe/snipper',
        project_urls={
            "Bug Tracker": "https://lab.compute.dtu.dk/tuhe/snipper/issues",
        },
    
    tuhe's avatar
    tuhe committed
        classifiers=[
            "Programming Language :: Python :: 3",
    
    tuhe's avatar
    tuhe committed
            "License :: OSI Approved :: MIT License",
    
    tuhe's avatar
    tuhe committed
            "Operating System :: OS Independent",
        ],
    
    tuhe's avatar
    tuhe committed
        package_dir={"": "src"},
    
    tuhe's avatar
    tuhe committed
        packages=setuptools.find_packages(where="src"),
    
    tuhe's avatar
    tuhe committed
        python_requires=">=3.8",
        install_requires=['jinja2',],
    
    tuhe's avatar
    tuhe committed
    )
    
    tuhe's avatar
    tuhe committed
    
    # setup(
    #     name='unitgrade',
    #     version=__version__,
    #     packages=['unitgrade2'],
    #     url=,
    #     license='MIT',
    #     author='Tue Herlau',
    #     author_email='tuhe@dtu.dk',
    #     description="""
    # A student homework/exam evaluation framework build on pythons unittest framework. This package contains all files required to run unitgrade tests as a student. To develop tests, please use unitgrade_private.
    # """,
    #     include_package_data=False,
    # )