-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·69 lines (62 loc) · 2.29 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·69 lines (62 loc) · 2.29 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
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
66
67
68
69
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os
from glob import glob
#from pkg_resources import parse_requirements
from packaging.requirements import Requirement
from setuptools import find_packages
from setuptools import setup
source_dir = os.path.abspath(os.path.dirname(__file__))
# read the version and other strings from _version.py
version_info = {}
with open(os.path.join(source_dir, "MetricsReloaded/_version.py")) as o:
exec(o.read(), version_info)
# read install requirements from requirements.txt
with open(os.path.join(source_dir, "requirements.txt")) as o:
#requirements = {str(r).rstrip() for r in o}
requirements = o.read().splitlines()
print(requirements)
setup(
name="MetricsReloaded",
version=version_info["__version__"],
description=version_info["__description__"],
author=version_info["__author__"],
author_email=version_info["__author_email__"],
url="https://github.com/Project-MONAI/MetricsReloaded",
packages=find_packages(),
py_modules=[
os.path.splitext(os.path.basename(path))[0]
for path in glob("MetricsReloaded/*.py")
],
include_package_data=True,
zip_safe=False,
classifiers=[
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
],
project_urls={
"Documentation": "https://MetricsReloaded.readthedocs.io/",
"Issue Tracker": "https://github.com/Project-MONAI/MetricsReloaded/issues",
},
python_requires=">=3.7",
install_requires=requirements,
extras_require={},
setup_requires=[
"pytest-runner",
],
entry_points={},
)