From 66783321fefda9d9f710dd1705b32c560d3a730d Mon Sep 17 00:00:00 2001 From: Walter Hugo Lopez Pinaya Date: Wed, 7 Jun 2023 15:13:33 +0100 Subject: [PATCH 1/2] Fix repo name Signed-off-by: Walter Hugo Lopez Pinaya --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8d834bf2..80dd32ee 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import find_packages, setup setup( - name="generative", + name="monai-generative", packages=find_packages(exclude=[]), version="0.2.2", description="Installer to help to use the prototypes from MONAI generative models in other projects.", From 8731c61da97cabf8bdee64586881179da6c61852 Mon Sep 17 00:00:00 2001 From: Walter Hugo Lopez Pinaya Date: Wed, 7 Jun 2023 15:27:20 +0100 Subject: [PATCH 2/2] Update setup.cfg Signed-off-by: Walter Hugo Lopez Pinaya --- setup.cfg | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index d7fde472..dfcba26f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,50 @@ +[metadata] +name = monai-generative +author = MONAI Consortium +author_email = monai.contact@gmail.com +url = https://monai.io/ +description = MONAI Generative Models makes it easy to train, evaluate, and deploy generative models and related applications +long_description = file:README.md +long_description_content_type = text/markdown; charset=UTF-8 +platforms = OS Independent +license = Apache License 2.0 +license_files = + LICENSE +project_urls = + Documentation=https://docs.monai.io/ + Bug Tracker=https://github.com/Project-MONAI/GenerativeModels/issues + Source Code=https://github.com/Project-MONAI/GenerativeModels +classifiers = + Intended Audience :: Developers + Intended Audience :: Education + Intended Audience :: Science/Research + Intended Audience :: Healthcare Industry + Programming Language :: C++ + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Topic :: Scientific/Engineering + Topic :: Scientific/Engineering :: Artificial Intelligence + Topic :: Scientific/Engineering :: Medical Science Apps. + Topic :: Scientific/Engineering :: Information Analysis + Topic :: Software Development + Topic :: Software Development :: Libraries + Typing :: Typed + +[options] +python_requires = >= 3.8 +# for compiling and develop setup only +# no need to specify the versions so that we could +# compile for multiple targeted versions. +setup_requires = + torch + ninja +install_requires = + monai>=1.2.0rc1 + torch>=1.9 + numpy>=1.20 + [flake8] select = B,C,E,F,N,P,T4,W,B9 max_line_length = 120 @@ -7,6 +54,7 @@ max_line_length = 120 # B023 https://github.com/Project-MONAI/MONAI/issues/4627 # B028 https://github.com/Project-MONAI/MONAI/issues/5855 # B907 https://github.com/Project-MONAI/MONAI/issues/5868 +# B908 https://github.com/Project-MONAI/MONAI/issues/6503 ignore = E203 E501 @@ -19,6 +67,7 @@ ignore = B905 B028 B907 + B908 per_file_ignores = __init__.py: F401, __main__.py: F401 exclude = *.pyi,.git,.eggs,generative/_version.py,versioneer.py,venv,.venv,_version.py,tutorials/ @@ -39,8 +88,8 @@ ignore_missing_imports = True no_implicit_optional = True # Warns about casting an expression to its inferred type. warn_redundant_casts = True -# Warns about unneeded # type: ignore comments. -# warn_unused_ignores = True +# No error on unneeded # type: ignore comments. +warn_unused_ignores = False # Shows a warning when returning a value with type Any from a function declared with a non-Any return type. warn_return_any = True # Prohibit equality checks, identity checks, and container checks between non-overlapping types.