-
-
Notifications
You must be signed in to change notification settings - Fork 256
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 1.38 KB
/
Copy pathsetup.py
File metadata and controls
36 lines (32 loc) · 1.38 KB
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
import re
import setuptools
from setuptools import setup, find_packages
with open("torchxrayvision/_version.py", "r") as f:
_version_match = re.search(r'__version__ = ["\']([^"\']+)["\']', f.read())
if _version_match is None:
raise RuntimeError("Unable to find __version__ in torchxrayvision/_version.py")
__version__ = _version_match.group(1)
with open("README.md", "r") as fh:
long_description = fh.read()
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
setuptools.setup(
name="torchxrayvision",
version=__version__,
author="Joseph Paul Cohen",
author_email="joseph@josephpcohen.com",
description="TorchXRayVision: A library of chest X-ray datasets and models",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mlmed/torchxrayvision",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Medical Science Apps."
],
python_requires='>=3.6',
install_requires=REQUIREMENTS,
packages=find_packages(),
package_dir={'torchxrayvision': 'torchxrayvision'},
package_data={'torchxrayvision': ['data/*.zip','data/*.gz','data/*.tgz','baseline_models/*/*.json','baseline_models/*/*/*.json']},
)