setup.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import os
  2. import setuptools
  3. with open("README.rst", "r") as readme:
  4. LONG_DESCRIPTION = readme.read()
  5. setuptools.setup(
  6. name="freesurfer-volume-reader",
  7. use_scm_version={
  8. "write_to": os.path.join("freesurfer_volume_reader", "version.py"),
  9. # `version` triggers pylint C0103
  10. "write_to_template": "# pylint: disable=missing-module-docstring\n"
  11. + "__version__ = '{version}'\n",
  12. },
  13. description="Python script & library to read hippocampal subfield volumes"
  14. "computed by Freesurfer & ASHS",
  15. long_description=LONG_DESCRIPTION,
  16. author="Fabian Peter Hammerle",
  17. author_email="fabian@hammerle.me",
  18. url="https://github.com/fphammerle/freesurfer-volume-reader",
  19. # TODO add license
  20. keywords=[
  21. "brain",
  22. "freesurfer",
  23. "hippocampus",
  24. "neuroimaging",
  25. "reader",
  26. "subfields",
  27. ],
  28. classifiers=[
  29. "Development Status :: 3 - Alpha",
  30. "Intended Audience :: Healthcare Industry",
  31. "Intended Audience :: Science/Research",
  32. "Programming Language :: Python :: 3.5",
  33. "Programming Language :: Python :: 3.6",
  34. "Programming Language :: Python :: 3.7",
  35. "Programming Language :: Python :: 3.8",
  36. "Topic :: Scientific/Engineering :: Information Analysis",
  37. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  38. "Topic :: Utilities",
  39. ],
  40. packages=setuptools.find_packages(),
  41. entry_points={
  42. "console_scripts": [
  43. "freesurfer-volume-reader = freesurfer_volume_reader.__main__:main"
  44. ]
  45. },
  46. install_requires=[
  47. # >=0.21.0 pandas.DataFrame.drop(columns=[...], ...)
  48. "pandas>=0.21.0,<2"
  49. ],
  50. setup_requires=["setuptools_scm"],
  51. tests_require=[
  52. "pylint>=2.3.0,<3",
  53. "pytest<5",
  54. "pytest-cov<3,>=2",
  55. "pytest-timeout<2",
  56. ],
  57. )