setup.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-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="Python Library to Read and Write Surface Files"
  13. " in Freesurfer's TriangularSurface Format",
  14. long_description=LONG_DESCRIPTION,
  15. author='Fabian Peter Hammerle',
  16. author_email='fabian@hammerle.me',
  17. url='https://github.com/fphammerle/freesurfer-surface',
  18. # TODO add license
  19. keywords=[
  20. 'brain',
  21. 'freesurfer',
  22. 'mesh',
  23. 'neuroimaging',
  24. 'reader',
  25. 'surface',
  26. 'triangle',
  27. 'vertex',
  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. "Topic :: Scientific/Engineering :: Information Analysis",
  38. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  39. "Topic :: Utilities",
  40. ],
  41. packages=setuptools.find_packages(),
  42. entry_points={
  43. 'console_scripts': [
  44. 'freesurfer-annotation-labels = freesurfer_surface.__main__:annotation_labels',
  45. 'unite-freesurfer-surfaces = freesurfer_surface.__main__:unite_surfaces',
  46. ],
  47. },
  48. python_requires='>=3.5',
  49. install_requires=[
  50. 'numpy<2',
  51. ],
  52. setup_requires=[
  53. 'setuptools_scm',
  54. ],
  55. tests_require=[
  56. 'pylint>=2.3.0,<3',
  57. 'pytest<5',
  58. 'pytest-cov<3,>=2',
  59. ],
  60. )