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.

50 lines
1.5 KiB

4 years ago
4 years ago
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'
  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 = ['requests', 'boto3', 'pydantic', 'jinja2']
  16. required = [line.rstrip() for line in io.open(os.path.join(here, 'app/requirements.txt')) if not line.startswith('psy')]
  17. setup(
  18. name=NAME,
  19. use_scm_version=True,
  20. setup_requires=['setuptools_scm'],
  21. description=DESCRIPTION,
  22. long_description=long_description,
  23. long_description_content_type='text/markdown',
  24. author=AUTHOR,
  25. author_email=EMAIL,
  26. url=URL,
  27. packages=find_packages(exclude=('*.tests',)),
  28. entry_points={
  29. 'console_scripts': [
  30. 'doccano = app.doccano.doccano:main'
  31. ]
  32. },
  33. install_requires=required,
  34. include_package_data=True,
  35. license=LICENSE,
  36. classifiers=[
  37. 'License :: OSI Approved :: MIT License',
  38. 'Programming Language :: Python',
  39. 'Programming Language :: Python :: 3.6',
  40. 'Programming Language :: Python :: 3.7',
  41. 'Programming Language :: Python :: 3.8',
  42. 'Programming Language :: Python :: Implementation :: CPython',
  43. 'Programming Language :: Python :: Implementation :: PyPy'
  44. ],
  45. )