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. # newline after import to fix pylint C0321/multiple-statements
  11. "write_to_template": "import typing\n__version__: typing.Optional[str] = '{version}'\n",
  12. },
  13. description="Python Library to Read and Write Surface Files"
  14. " in Freesurfer's TriangularSurface Format",
  15. long_description=LONG_DESCRIPTION,
  16. author="Fabian Peter Hammerle",
  17. author_email="fabian@hammerle.me",
  18. url="https://github.com/fphammerle/freesurfer-surface",
  19. # TODO add license
  20. keywords=[
  21. "brain",
  22. "freesurfer",
  23. "mesh",
  24. "neuroimaging",
  25. "reader",
  26. "surface",
  27. "triangle",
  28. "vertex",
  29. ],
  30. classifiers=[
  31. "Development Status :: 3 - Alpha",
  32. "Intended Audience :: Healthcare Industry",
  33. "Intended Audience :: Science/Research",
  34. "Programming Language :: Python :: 3.5",
  35. "Programming Language :: Python :: 3.6",
  36. "Programming Language :: Python :: 3.7",
  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. )