setup.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. """
  2. freesurfer-stats, a Python Library to Read FreeSurfer's Cortical Parcellation Anatomical Statistics
  3. Copyright (C) 2019 Fabian Peter Hammerle <fabian@hammerle.me>
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. """
  15. import os
  16. import setuptools
  17. with open("README.rst", "r") as readme:
  18. LONG_DESCRIPTION = readme.read()
  19. setuptools.setup(
  20. name="freesurfer-stats",
  21. use_scm_version={
  22. "write_to": os.path.join("freesurfer_stats", "version.py"),
  23. # `version` triggers pylint C0103
  24. "write_to_template": "__version__ = '{version}'\n",
  25. },
  26. description="Python Library to Read FreeSurfer's cortical parcellation anatomical statistics",
  27. long_description=LONG_DESCRIPTION,
  28. author="Fabian Peter Hammerle",
  29. author_email="fabian@hammerle.me",
  30. url="https://github.com/fphammerle/freesurfer-stats",
  31. license="GPLv3+",
  32. keywords=[
  33. "anatomy",
  34. "aparc",
  35. "area",
  36. "brain",
  37. "cortex",
  38. "dataframe",
  39. "freesurfer",
  40. "mris_anatomical_stats",
  41. "neuroimaging",
  42. "pandas",
  43. "parcellation",
  44. "reader",
  45. "statistics",
  46. "surface",
  47. "volume",
  48. ],
  49. classifiers=[
  50. "Development Status :: 4 - Beta",
  51. "Intended Audience :: Healthcare Industry",
  52. "Intended Audience :: Science/Research",
  53. "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  54. "Programming Language :: Python :: 3.5",
  55. "Programming Language :: Python :: 3.6",
  56. "Programming Language :: Python :: 3.7",
  57. "Programming Language :: Python :: 3.8",
  58. "Programming Language :: Python :: 3.9",
  59. "Topic :: Scientific/Engineering :: Information Analysis",
  60. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  61. "Topic :: Utilities",
  62. ],
  63. packages=setuptools.find_packages(),
  64. install_requires=[
  65. "numpy<2",
  66. # still hoping that pandas will stick to semantic versioning in the future
  67. "pandas>=0.21,<2",
  68. ],
  69. setup_requires=["setuptools_scm"],
  70. tests_require=["pytest<5"],
  71. )