setup.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. # 2 newlines after import & 2 spaces before # for black
  11. "write_to_template": "# pylint: disable=missing-module-docstring\nimport typing\n\n"
  12. + '__version__ = "{version}" # type: typing.Optional[str]\n',
  13. },
  14. description="Python script & library to read hippocampal subfield volumes"
  15. "computed by Freesurfer & ASHS",
  16. long_description=LONG_DESCRIPTION,
  17. author="Fabian Peter Hammerle",
  18. author_email="fabian@hammerle.me",
  19. url="https://github.com/fphammerle/freesurfer-volume-reader",
  20. # TODO add license
  21. keywords=[
  22. "brain",
  23. "freesurfer",
  24. "hippocampus",
  25. "neuroimaging",
  26. "reader",
  27. "subfields",
  28. ],
  29. classifiers=[
  30. "Development Status :: 3 - Alpha",
  31. "Intended Audience :: Healthcare Industry",
  32. "Intended Audience :: Science/Research",
  33. "Programming Language :: Python :: 3.5",
  34. "Programming Language :: Python :: 3.6",
  35. "Programming Language :: Python :: 3.7",
  36. "Programming Language :: Python :: 3.8",
  37. "Programming Language :: Python :: 3.9",
  38. "Topic :: Scientific/Engineering :: Information Analysis",
  39. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  40. "Topic :: Utilities",
  41. ],
  42. packages=setuptools.find_packages(),
  43. entry_points={
  44. "console_scripts": [
  45. "freesurfer-volume-reader = freesurfer_volume_reader.__main__:main"
  46. ]
  47. },
  48. install_requires=[
  49. # >=0.21.0 pandas.DataFrame.drop(columns=[...], ...)
  50. "pandas>=0.21.0,<2"
  51. ],
  52. setup_requires=["setuptools_scm"],
  53. tests_require=["pytest<5", "pytest-timeout<2"],
  54. )