Skip to content

Commit

Permalink
Adds setup.cfg to set package installation parameters
Browse files Browse the repository at this point in the history
It simplifies the `setup.py` maintenance
  • Loading branch information
dpshelio committed Dec 1, 2022
1 parent eb01f99 commit 6e4a883
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
28 changes: 28 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[metadata]
name = sagittal_average
version = 0.1.0
author = Charlene Bultoc
author_email = [email protected]
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
13 changes: 2 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 6e4a883

Please sign in to comment.