setup.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. packages=setuptools.find_packages(),
  27. description="Python Library to Read FreeSurfer's cortical parcellation anatomical statistics",
  28. long_description=LONG_DESCRIPTION,
  29. author="Fabian Peter Hammerle",
  30. author_email="fabian@hammerle.me",
  31. url="https://github.com/fphammerle/freesurfer-stats",
  32. license="GPLv3+",
  33. keywords=[
  34. "anatomy",
  35. "aparc",
  36. "area",
  37. "brain",
  38. "cortex",
  39. "dataframe",
  40. "freesurfer",
  41. "mris_anatomical_stats",
  42. "neuroimaging",
  43. "pandas",
  44. "parcellation",
  45. "reader",
  46. "statistics",
  47. "surface",
  48. "volume",
  49. ],
  50. classifiers=[
  51. "Development Status :: 4 - Beta",
  52. "Intended Audience :: Healthcare Industry",
  53. "Intended Audience :: Science/Research",
  54. "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  55. # .github/workflows/python.yml
  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. # >=3.6 f-strings & variable type hints
  64. # >=3.7 postponed evaluation of type annotations (PEP563)
  65. python_requires=">=3.7",
  66. install_requires=[
  67. "numpy<2",
  68. # still hoping that pandas will stick to semantic versioning in the future
  69. # <0.23 untested
  70. "pandas>=0.23,<2",
  71. ],
  72. setup_requires=["setuptools_scm"],
  73. tests_require=["pytest<5"],
  74. )