From cc8381bb4f5621305b3b0d33533f6c4de91f9d36 Mon Sep 17 00:00:00 2001 From: andreped Date: Thu, 27 Oct 2022 11:25:33 +0200 Subject: [PATCH] refactored setup.py [no ci] --- setup.py | 50 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/setup.py b/setup.py index a681398..5cded75 100644 --- a/setup.py +++ b/setup.py @@ -2,44 +2,42 @@ from setuptools.command.install import install import os - with open("README.md", "r", errors='ignore') as f: long_description = f.read() with open('requirements.txt', 'r', encoding='utf-16', errors='ignore') as ff: required = ff.read().splitlines() - setup( - name='livermask', - version='1.3.3', - author="André Pedersen", - author_email="andrped94@gmail.com", - license='MIT', - description="A package for automatic segmentation of liver from CT data", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/andreped/livermask", - include_package_data=True, - packages=find_packages( + name='livermask', + version='1.3.3', + author="André Pedersen", + author_email="andrped94@gmail.com", + license='MIT', + description="A package for automatic segmentation of liver from CT data", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/andreped/livermask", + include_package_data=True, + packages=find_packages( include=[ - 'livermask', + 'livermask', 'livermask.utils', 'livermask.configs', ] ), - entry_points={ + entry_points={ 'console_scripts': [ 'livermask = livermask.livermask:main', ] - }, - install_requires=required, - classifiers=[ - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], - python_requires='>=3.6', - ) + }, + install_requires=required, + classifiers=[ + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +)