Skip to content
Snippets Groups Projects
setup.py 1.3 KiB
Newer Older
  • Learn to ignore specific revisions
  • tuhe's avatar
    tuhe committed
    # Use this guide:
    
    tuhe's avatar
    tuhe committed
    # Use:  pipreqs.exe slider --no-pin --force for requirements_pip.txt
    
    tuhe's avatar
    tuhe committed
    # https://packaging.python.org/tutorials/packaging-projects/
    
    tuhe's avatar
    tuhe committed
    # py -m build && twine upload dist/*
    
    tuhe's avatar
    tuhe committed
    # Linux> python -m build && python -m twine upload dist/*
    
    tuhe's avatar
    tuhe committed
    # Local install: sudo pip install -e ./
    
    tuhe's avatar
    tuhe committed
    import setuptools
    
    tuhe's avatar
    tuhe committed
    
    
    tuhe's avatar
    tuhe committed
    with open("src/snipper/version.py", "r", encoding="utf-8") as fh:
        __version__ = fh.read().split(" = ")[1].strip()[1:-1]
    
    
    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",
    
    tuhe's avatar
    tuhe committed
        version=__version__,
    
    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",
    
    tuhe's avatar
    tuhe committed
        install_requires=['pybtex', 'numpy'],
    
    tuhe's avatar
    tuhe committed
    )