From 6e4a883fdea3804fb5db098f3263e98b68beaa09 Mon Sep 17 00:00:00 2001 From: David Perez-Suarez Date: Thu, 1 Dec 2022 10:25:11 +0000 Subject: [PATCH] Adds `setup.cfg` to set package installation parameters It simplifies the `setup.py` maintenance --- setup.cfg | 28 ++++++++++++++++++++++++++++ setup.py | 13 ++----------- 2 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..4b2aa25 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,28 @@ +[metadata] +name = sagittal_average +version = 0.1.0 +author = Charlene Bultoc +author_email = c.bultoc@neurolab.ac.uk +license = BSD 3-Clause License +description = Calculate the averages through a sagittal plane. +long_description = file: README.md, LICENSE.rst +long_description_content_type = text/markdown +classifiers = + Programming Language :: Python :: 3.9 + Operating System :: OS Independent + License :: OSI Approved :: BSD License + +[options] +packages = find: +python_requires = >=3.9 +# add your package requirements here +install_requires = + numpy + +[options.entry_points] +console_scripts = + sagverage = sagittal_average.command:process + +[options.packages.find] +exclude = + *tests diff --git a/setup.py b/setup.py index 440d750..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,3 @@ -from setuptools import setup, find_packages +from setuptools import setup -setup( - name="sagittal_average", - version="0.1.0", - packages=find_packages(exclude=['*tests']), - install_requires=['numpy'], - entry_points={ - 'console_scripts': [ - 'sagverage = sagittal_average.command:process' - ]}, -) +setup()