setup.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import os
  2. import setuptools
  3. import freesurfer_surface
  4. LONG_DESCRIPTION = freesurfer_surface.__doc__.strip()
  5. setuptools.setup(
  6. name='freesurfer-surface',
  7. use_scm_version={
  8. 'write_to': os.path.join('freesurfer_surface', 'version.py'),
  9. # `version` triggers pylint C0103
  10. 'write_to_template': "__version__ = '{version}'\n",
  11. },
  12. description=LONG_DESCRIPTION.split(sep='\n', maxsplit=1)[0],
  13. long_description=LONG_DESCRIPTION,
  14. author='Fabian Peter Hammerle',
  15. author_email='fabian@hammerle.me',
  16. url='https://github.com/fphammerle/freesurfer-surface',
  17. # TODO add license
  18. keywords=[
  19. 'brain',
  20. 'freesurfer',
  21. 'mesh',
  22. 'neuroimaging',
  23. 'reader',
  24. 'surface',
  25. 'triangle',
  26. 'vertex',
  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. 'Topic :: Scientific/Engineering :: Information Analysis',
  36. 'Topic :: Scientific/Engineering :: Medical Science Apps.',
  37. 'Topic :: Utilities',
  38. ],
  39. packages=setuptools.find_packages(),
  40. entry_points={
  41. 'console_scripts': [
  42. 'freesurfer-annotation-labels = freesurfer_surface.__main__:annotation_labels',
  43. ],
  44. },
  45. python_requires='>=3.5',
  46. install_requires=[
  47. 'numpy<2',
  48. ],
  49. setup_requires=[
  50. 'setuptools_scm',
  51. ],
  52. tests_require=[
  53. 'pylint>=2.3.0,<3',
  54. 'pytest<5',
  55. 'pytest-cov<3,>=2',
  56. ],
  57. )