Skip to content

Commit 6e4a883

Browse files
committed
Adds setup.cfg to set package installation parameters
It simplifies the `setup.py` maintenance
1 parent eb01f99 commit 6e4a883

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

setup.cfg

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[metadata]
2+
name = sagittal_average
3+
version = 0.1.0
4+
author = Charlene Bultoc
5+
author_email = [email protected]
6+
license = BSD 3-Clause License
7+
description = Calculate the averages through a sagittal plane.
8+
long_description = file: README.md, LICENSE.rst
9+
long_description_content_type = text/markdown
10+
classifiers =
11+
Programming Language :: Python :: 3.9
12+
Operating System :: OS Independent
13+
License :: OSI Approved :: BSD License
14+
15+
[options]
16+
packages = find:
17+
python_requires = >=3.9
18+
# add your package requirements here
19+
install_requires =
20+
numpy
21+
22+
[options.entry_points]
23+
console_scripts =
24+
sagverage = sagittal_average.command:process
25+
26+
[options.packages.find]
27+
exclude =
28+
*tests

setup.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import setup
22

3-
setup(
4-
name="sagittal_average",
5-
version="0.1.0",
6-
packages=find_packages(exclude=['*tests']),
7-
install_requires=['numpy'],
8-
entry_points={
9-
'console_scripts': [
10-
'sagverage = sagittal_average.command:process'
11-
]},
12-
)
3+
setup()

0 commit comments

Comments
 (0)