setup.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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-stats',
  7. use_scm_version={
  8. 'write_to': os.path.join('freesurfer_stats', 'version.py'),
  9. # `version` triggers pylint C0103
  10. 'write_to_template': "__version__ = '{version}'\n",
  11. },
  12. description="Python Library to Read FreeSurfer's cortical parcellation anatomical statistics",
  13. long_description=LONG_DESCRIPTION,
  14. author='Fabian Peter Hammerle',
  15. author_email='fabian@hammerle.me',
  16. url='https://github.com/fphammerle/freesurfer-stats',
  17. # TODO add license
  18. keywords=[
  19. 'anatomy',
  20. 'aparc',
  21. 'area',
  22. 'brain',
  23. 'cortex',
  24. 'dataframe',
  25. 'freesurfer',
  26. 'mris_anatomical_stats',
  27. 'neuroimaging',
  28. 'pandas',
  29. 'parcellation',
  30. 'reader',
  31. 'statistics',
  32. 'surface',
  33. 'volume',
  34. ],
  35. classifiers=[
  36. "Development Status :: 3 - Alpha",
  37. "Intended Audience :: Healthcare Industry",
  38. "Intended Audience :: Science/Research",
  39. "Programming Language :: Python :: 3.5",
  40. "Programming Language :: Python :: 3.6",
  41. "Programming Language :: Python :: 3.7",
  42. "Programming Language :: Python :: 3.8",
  43. "Topic :: Scientific/Engineering :: Information Analysis",
  44. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  45. "Topic :: Utilities",
  46. ],
  47. packages=setuptools.find_packages(),
  48. install_requires=[
  49. # hoping pandas maintainers use semantic versioning
  50. # TODO verify lower version constraint
  51. "pandas>=0.21,<2",
  52. ],
  53. setup_requires=[
  54. 'setuptools_scm',
  55. ],
  56. tests_require=[
  57. 'pylint>=2.3.0,<3',
  58. 'pytest-cov<3,>=2',
  59. 'pytest-timeout<2',
  60. 'pytest<5',
  61. ],
  62. )