setup.py 1.7 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-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. '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-annotation-labels = freesurfer_surface.__main__:annotation_labels',
  44. ],
  45. },
  46. python_requires='>=3.5',
  47. install_requires=[
  48. 'numpy<2',
  49. ],
  50. setup_requires=[
  51. 'setuptools_scm',
  52. ],
  53. tests_require=[
  54. 'pylint>=2.3.0,<3',
  55. 'pytest<5',
  56. 'pytest-cov<3,>=2',
  57. ],
  58. )