Skip to content
Snippets Groups Projects
setup.py 2.54 KiB
Newer Older
  • Learn to ignore specific revisions
  • import os
    
    fima's avatar
    fima committed
    import re
    
    s193396's avatar
    s193396 committed
    
    
    from setuptools import find_packages, setup
    
    
    # Read the contents of your README file
    
    s193396's avatar
    s193396 committed
    with open('README.md', encoding='utf-8') as f:
    
        long_description = f.read()
    
    
    s193396's avatar
    s193396 committed
    
    
    fima's avatar
    fima committed
    # Read the version from the __init__.py file
    def read_version():
    
    s193396's avatar
    s193396 committed
        with open(os.path.join('qim3d', '__init__.py'), encoding='utf-8') as f:
    
    fima's avatar
    fima committed
            version_file = f.read()
        version_match = re.search(r'^__version__ = ["\']([^"\']*)["\']', version_file, re.M)
        if version_match:
            return version_match.group(1)
    
    s193396's avatar
    s193396 committed
        raise RuntimeError('Unable to find version string.')
    
    
    s193396's avatar
    s193396 committed
        name='qim3d',
    
    fima's avatar
    fima committed
        version=read_version(),
    
    s193396's avatar
    s193396 committed
        author='Felipe Delestro',
        author_email='fima@dtu.dk',
        description='QIM tools and user interfaces for volumetric imaging',
    
        long_description=long_description,
    
    s193396's avatar
    s193396 committed
        long_description_content_type='text/markdown',
        url='https://platform.qim.dk/qim3d',
    
        packages=find_packages(),
    
        include_package_data=True,
    
    s193396's avatar
    s193396 committed
        entry_points={'console_scripts': ['qim3d=qim3d.cli:main']},
    
        classifiers=[
    
    s193396's avatar
    s193396 committed
            'License :: OSI Approved :: MIT License',
            'Programming Language :: Python :: 3',
            'Development Status :: 5 - Production/Stable',
            'Intended Audience :: Education',
            'Intended Audience :: Science/Research',
            'Natural Language :: English',
            'Operating System :: OS Independent',
            'Topic :: Scientific/Engineering :: Image Processing',
            'Topic :: Scientific/Engineering :: Visualization',
            'Topic :: Software Development :: User Interfaces',
    
    s193396's avatar
    s193396 committed
        python_requires='>=3.10',
    
        install_requires=[
    
    s193396's avatar
    s193396 committed
            'gradio==4.44',
            'h5py>=3.9.0',
            'localthickness>=0.1.2',
            'matplotlib>=3.8.0',
            'pydicom==2.4.4',
            'numpy>=1.26.0',
            'outputformat>=0.1.3',
            'Pillow>=10.0.1',
            'plotly>=5.14.1',
            'scipy>=1.11.2',
            'seaborn>=0.12.2',
            'setuptools>=68.0.0',
            'tifffile==2023.8.12',
            'imagecodecs==2023.7.10',
            'tqdm>=4.65.0',
            'nibabel>=5.2.0',
            'ipywidgets>=8.1.2',
            'dask>=2023.6.0',
            'k3d>=2.16.1',
            'olefile>=0.46',
            'psutil>=5.9.0',
            'structure-tensor>=0.2.1',
            'noise>=1.2.2',
            'zarr>=2.18.2',
            'ome_zarr>=0.9.0',
            'dask-image>=2024.5.3',
            'scikit-image>=0.24.0',
            'trimesh>=4.4.9',
    
    fima's avatar
    fima committed
        extras_require={
    
    s193396's avatar
    s193396 committed
            'deep-learning': [
                'albumentations>=1.3.1',
                'torch>=2.0.1',
                'torchvision>=0.15.2',
                'torchinfo>=1.8.0',
                'monai>=1.2.0',
            ]
        },