Skip to content
Snippets Groups Projects
setup.py 1.3 KiB
Newer Older
  • Learn to ignore specific revisions
  • Swen Vermeul's avatar
    Swen Vermeul committed
    import sys
    
    Swen Vermeul's avatar
    Swen Vermeul committed
        sys.exit("Sorry, Python < 3.3 is not supported")
    
    Swen Vermeul's avatar
    Swen Vermeul committed
    
    from setuptools import setup, find_packages
    
    with open("README.md", "r", encoding="utf-8") as fh:
        long_description = fh.read()
    
    # include all man files
    
    Swen Vermeul's avatar
    Swen Vermeul committed
    data_dir = os.path.join("man", "man1")
    data_files = [
        (d, [os.path.join(d, f) for f in files]) for d, folders, files in os.walk(data_dir)
    ]
    
    Swen Vermeul's avatar
    Swen Vermeul committed
        name="obis",
        version="0.3.2",
        description="Local data management with assistance from OpenBIS.",
    
    Swen Vermeul's avatar
    Swen Vermeul committed
        long_description=long_description,
        long_description_content_type="text/markdown",
    
    Swen Vermeul's avatar
    Swen Vermeul committed
        url="https://sissource.ethz.ch/sispub/openbis/tree/master/obis",
        author="ID SIS • ETH Zürich",
        author_email="swen@ethz.ch",
        license="Apache Software License Version 2.0",
        packages=["obis", "obis.dm", "obis.dm.commands", "obis.scripts"],
    
        data_files=data_files,
    
    Swen Vermeul's avatar
    Swen Vermeul committed
        package_data={"obis": ["dm/git-annex-attributes"]},
        install_requires=["pyOpenSSL", "pytest", "pybis>=1.33.1", "click"],
        entry_points={"console_scripts": ["obis=obis.scripts.cli:main"]},
    
    Swen Vermeul's avatar
    Swen Vermeul committed
        python_requires=">=3.3",
        classifiers=[
            "Programming Language :: Python :: 3",
            "License :: OSI Approved :: Apache Software License",
            "Operating System :: OS Independent",
        ],