|
5 | 5 | LICENSE file in the root directory of this source tree. |
6 | 6 | """ |
7 | 7 |
|
| 8 | +import os |
| 9 | +import re |
| 10 | + |
8 | 11 | from setuptools import find_packages, setup |
9 | 12 |
|
| 13 | +# from https://github.com/facebookresearch/ClassyVision/blob/master/setup.py |
| 14 | +# get version string from module |
| 15 | +with open(os.path.join(os.path.dirname(__file__), "fastmri/__init__.py"), "r") as f: |
| 16 | + readval = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M) |
| 17 | + if readval is None: |
| 18 | + raise RuntimeError("Version not found.") |
| 19 | + version = readval.group(1) |
| 20 | + print("-- Building version " + version) |
| 21 | + |
| 22 | +with open("README.md", encoding="utf8") as f: |
| 23 | + readme = f.read() |
| 24 | + |
10 | 25 | install_requires = [ |
11 | 26 | "numpy>=1.18.5", |
12 | 27 | "scikit_image>=0.16.2", |
13 | | - "torchvision>=0.6.0", |
14 | | - "torch>=1.6", |
| 28 | + "torchvision>=0.8.1", |
| 29 | + "torch>=1.7.0", |
15 | 30 | "runstats>=1.8.0", |
16 | | - "pytorch_lightning", |
17 | | - "h5py", |
18 | | - "PyYAML", |
| 31 | + "pytorch_lightning>=1.0.6,<1.1", |
| 32 | + "h5py>=2.10.0", |
| 33 | + "PyYAML>=5.3.1", |
19 | 34 | ] |
20 | 35 |
|
21 | 36 | setup( |
22 | 37 | name="fastmri", |
23 | 38 | author="Facebook/NYU fastMRI Team", |
24 | 39 | author_email="fastmri@fb.com", |
25 | | - version="0.1", |
| 40 | + version=version, |
| 41 | + license="MIT", |
| 42 | + description="A large-scale dataset of both raw MRI measurements and clinical MRI images.", |
| 43 | + long_description_content_type="text/markdown", |
| 44 | + long_description=readme, |
| 45 | + project_urls={ |
| 46 | + "Homepage": "https://fastmri.org/", |
| 47 | + "Source": "https://github.com/facebookresearch/fastMRI", |
| 48 | + }, |
| 49 | + python_requires=">=3.6", |
26 | 50 | packages=find_packages( |
27 | 51 | exclude=[ |
28 | 52 | "tests", |
29 | 53 | "fastmri_examples", |
30 | | - "data", |
31 | | - "common", |
32 | 54 | "banding_removal", |
33 | | - "models", |
34 | 55 | ] |
35 | 56 | ), |
36 | 57 | setup_requires=["wheel"], |
37 | 58 | install_requires=install_requires, |
| 59 | + classifiers=[ |
| 60 | + "Programming Language :: Python :: 3", |
| 61 | + "Programming Language :: Python :: 3.6", |
| 62 | + "License :: OSI Approved :: MIT License", |
| 63 | + "Operating System :: OS Independent", |
| 64 | + "Development Status :: 3 - Alpha", |
| 65 | + "Intended Audience :: Developers", |
| 66 | + "Topic :: Scientific/Engineering :: Artificial Intelligence", |
| 67 | + "Topic :: Scientific/Engineering :: Image Processing", |
| 68 | + "Topic :: Scientific/Engineering :: Medical Science Apps.", |
| 69 | + "Topic :: Scientific/Engineering :: Physics", |
| 70 | + ], |
38 | 71 | ) |
0 commit comments