setup.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. from setuptools import setup, find_packages # Always prefer setuptools over distutils
  2. from os import path
  3. import sys
  4. assert sys.version_info >= (3, 4, 0), "Python 3.4 or newer is required"
  5. HERE = path.abspath(path.dirname(__file__))
  6. # Get the long description from the relevant file
  7. with open(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
  8. long_description = f.read()
  9. with open(path.join(HERE, 'iepy', 'version.txt'), encoding='utf-8') as f:
  10. iepy_version = f.read().strip()
  11. base_reqs = """nltk>=3.2.1
  12. numpy>=1.8.0
  13. scipy>=0.13.3
  14. scikit-learn==1.0.2
  15. REfO==0.13
  16. docopt==0.6.1
  17. future==0.11.4
  18. appdirs==1.2.0
  19. wget==2.0
  20. colorama==0.2.7
  21. featureforge>=0.1.5
  22. Django==1.8.14
  23. django-relatives==0.3.1
  24. django-relatedadminwidget==0.0.3
  25. six>=1.9.0
  26. django-extra-views==0.7.1
  27. jsonfield==1.0.0
  28. django-angular==0.7.8
  29. nose>=1.3.0
  30. factory-boy==2.4.1
  31. xmltodict==0.8.6""".splitlines()
  32. setup(
  33. name='iepy',
  34. version=iepy_version,
  35. zip_safe=False,
  36. description='Information Extraction framework in Python',
  37. long_description=long_description,
  38. url='https://github.com/machinalis/iepy',
  39. # Author details
  40. author=(
  41. "Rafael Carrascosa, Javier Mansilla, Gonzalo García Berrotarán, "
  42. "Daniel Moisset, Franco M. Luque",
  43. ),
  44. # Choose your license
  45. license='BSD',
  46. classifiers=[
  47. # How mature is this project? Common values are
  48. # 3 - Alpha
  49. # 4 - Beta
  50. # 5 - Production/Stable
  51. 'Development Status :: 5 - Production/Stable',
  52. # Indicate who your project is intended for
  53. 'Intended Audience :: Developers',
  54. 'Intended Audience :: Science/Research',
  55. 'Intended Audience :: Information Technology',
  56. # Pick your license as you wish (should match "license" above)
  57. 'License :: OSI Approved :: BSD License',
  58. # Specify the Python versions you support here. In particular, ensure
  59. # that you indicate whether you support Python 2, Python 3 or both.
  60. 'Programming Language :: Python :: 3',
  61. 'Programming Language :: Python :: 3.2',
  62. 'Programming Language :: Python :: 3.3',
  63. 'Programming Language :: Python :: 3.4',
  64. 'Programming Language :: Python :: 3 :: Only',
  65. ],
  66. # What does your project relate to?
  67. keywords='information extraction relation detection',
  68. # You can just specify the packages manually here if your project is
  69. # simple. Or you can use find_packages().
  70. packages=find_packages(exclude=['docs', 'tests*', 'scripts']),
  71. include_package_data=True,
  72. # List run-time dependencies here. These will be installed by pip when your
  73. # project is installed. For an analysis of "install_requires" vs pip's
  74. # requirements files see:
  75. # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
  76. install_requires=base_reqs,
  77. # To provide executable scripts, use entry points in preference to the
  78. # "scripts" keyword. Entry points provide cross-platform support and allow
  79. # pip to create the appropriate form of executable for the target platform.
  80. entry_points={
  81. 'console_scripts': [
  82. 'iepy=iepy.instantiation.command_line:execute_from_command_line',
  83. ],
  84. },
  85. )