-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
65 lines (59 loc) · 2.05 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
import re
import setuptools
from pathlib import Path
root_directory = Path(__file__).parent
readme_filepath = root_directory.joinpath('README.md')
long_description = readme_filepath.read_text()
def get_version():
version_filepath = Path('src', 'highdicom', 'version.py')
with open(version_filepath, 'rt', encoding='utf8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
return version
setuptools.setup(
name='highdicom',
version=get_version(),
description='High-level DICOM abstractions.',
long_description=long_description,
long_description_content_type='text/markdown',
author='Markus D. Herrmann',
maintainer='Markus D. Herrmann',
url='https://github.com/imagingdatacommons/highdicom',
license='MIT',
platforms=['Linux', 'MacOS', 'Windows'],
classifiers=[
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
'Topic :: Multimedia :: Graphics',
'Topic :: Scientific/Engineering :: Information Analysis',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Development Status :: 4 - Beta',
],
include_package_data=True,
packages=setuptools.find_packages('src'),
package_dir={'': 'src'},
python_requires='>=3.6',
install_requires=[
'pydicom>=2.3.0,!=2.4.0',
'numpy>=1.19',
'pillow>=8.3',
'pillow-jpls>=1.0',
],
extras_require={
'libjpeg': [
'pylibjpeg>=1.4',
'pylibjpeg-libjpeg>=1.3',
'pylibjpeg-openjpeg>=1.2'
],
},
)