You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.3 KiB

4 years ago
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import io
  4. import os
  5. from setuptools import find_packages, setup
  6. NAME = 'doccano'
  7. DESCRIPTION = 'doccano, text annotation tool for machine learning practitioners'
  8. URL = 'https://github.com/doccano/doccano'
  9. EMAIL = 'hiroki.nakayama.py@gmail.com'
  10. AUTHOR = 'Hironsan'
  11. LICENSE = 'MIT'
  12. here = os.path.abspath(os.path.dirname(__file__))
  13. with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
  14. long_description = '\n' + f.read()
  15. required = [
  16. 'apache-libcloud>=3.2.0',
  17. 'colour>=0.1.5',
  18. 'conllu>=4.2.2',
  19. 'dj-database-url>=0.5.0',
  20. 'django-cors-headers>=3.5.0',
  21. 'django-filter>=2.4.0',
  22. 'django-rest-polymorphic>=0.1.9',
  23. 'djangorestframework-csv>=2.1.0',
  24. 'djangorestframework-xml>=2.0.0',
  25. 'drf-yasg>=1.20.0',
  26. 'environs>=9.2.0',
  27. 'furl>=2.1.0',
  28. 'pyexcel>=0.6.6',
  29. 'pyexcel-xlsx>=0.6.0',
  30. 'python-jose>=3.2.0',
  31. 'seqeval>=1.2.2',
  32. 'social-auth-app-django>=4.0.0',
  33. 'whitenoise>=5.2.0',
  34. 'auto-labeling-pipeline>=0.1.12',
  35. 'celery>=5.0.5',
  36. 'dj-rest-auth>=2.1.4',
  37. 'django-celery-results>=2.0.1',
  38. 'django-drf-filepond>=0.3.0',
  39. 'sqlalchemy>=1.4.7',
  40. 'gunicorn>=20.1.0',
  41. 'waitress>=2.0.0',
  42. 'pydantic>=1.8.2',
  43. 'chardet>=4.0.0',
  44. 'django-health-check'
  45. ]
  46. setup(
  47. name=NAME,
  48. use_scm_version=True,
  49. setup_requires=['setuptools_scm'],
  50. description=DESCRIPTION,
  51. long_description=long_description,
  52. long_description_content_type='text/markdown',
  53. author=AUTHOR,
  54. author_email=EMAIL,
  55. url=URL,
  56. packages=find_packages(exclude=('*.tests',)),
  57. entry_points={
  58. 'console_scripts': [
  59. 'doccano = backend.cli:main'
  60. ]
  61. },
  62. install_requires=required,
  63. extras_require={
  64. 'postgresql': ['psycopg2-binary>=2.8.6'],
  65. 'mssql': ['django-mssql-backend>=2.8.1'],
  66. },
  67. include_package_data=True,
  68. license=LICENSE,
  69. classifiers=[
  70. 'License :: OSI Approved :: MIT License',
  71. 'Programming Language :: Python',
  72. 'Programming Language :: Python :: 3.6',
  73. 'Programming Language :: Python :: 3.7',
  74. 'Programming Language :: Python :: 3.8',
  75. 'Programming Language :: Python :: Implementation :: CPython',
  76. 'Programming Language :: Python :: Implementation :: PyPy'
  77. ],
  78. )