setup.py 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. """
  2. LAKEsuperior setup script.
  3. Proudly ripped from https://github.com/pypa/sampleproject/blob/master/setup.py
  4. """
  5. import sys
  6. # Always prefer setuptools over distutils
  7. from setuptools import setup, find_packages
  8. # To use a consistent encoding
  9. from codecs import open
  10. from os import path
  11. here = path.abspath(path.dirname(__file__))
  12. # ``pytest_runner`` is referenced in ``setup_requires``.
  13. # See https://github.com/pytest-dev/pytest-runner#conditional-requirement
  14. needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
  15. pytest_runner = ['pytest-runner'] if needs_pytest else []
  16. # Get the long description from the README file
  17. with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
  18. long_description = f.read()
  19. setup(
  20. name='lakesuperior',
  21. version='1.0.0a9pre1',
  22. description='A Linked Data Platform repository sever.',
  23. long_description=long_description,
  24. long_description_content_type='text/x-rst; charset=UTF-8',
  25. url='https://lakesuperior.readthedocs.io',
  26. author='Stefano Cossu <@scossu>',
  27. #author_email='', # Optional
  28. license='Apache License Version 2.0',
  29. # https://pypi.python.org/pypi?%3Aaction=list_classifiers
  30. classifiers=[
  31. 'Development Status :: 3 - Alpha',
  32. 'Environment :: Console',
  33. 'Environment :: Web Environment',
  34. 'Framework :: Flask',
  35. 'Intended Audience :: Developers',
  36. 'Intended Audience :: Information Technology',
  37. 'Intended Audience :: Science/Research',
  38. 'License :: OSI Approved :: Apache Software License',
  39. 'Natural Language :: English',
  40. 'Operating System :: MacOS',
  41. 'Operating System :: Microsoft :: Windows',
  42. 'Operating System :: POSIX :: Linux',
  43. 'Programming Language :: Python :: 3',
  44. 'Programming Language :: Python :: 3.5',
  45. 'Programming Language :: Python :: 3.6',
  46. 'Topic :: Database :: Database Engines/Servers',
  47. ],
  48. keywords='repository linked-data',
  49. python_requires='~=3.5',
  50. packages=find_packages(exclude=['contrib', 'docs', 'tests']),
  51. # Great reference read about dependency management:
  52. # https://caremad.io/posts/2013/07/setup-vs-requirement/
  53. install_requires=[
  54. 'CoilMQ',
  55. 'Flask',
  56. 'HiYaPyCo',
  57. 'PyYAML',
  58. 'arrow',
  59. 'click',
  60. 'click-log',
  61. 'gevent',
  62. 'gunicorn',
  63. 'lmdb',
  64. 'rdflib',
  65. 'requests',
  66. 'requests-toolbelt',
  67. 'sphinx-rtd-theme',
  68. 'stomp.py',
  69. ],
  70. setup_requires=[] + pytest_runner,
  71. tests_require=[
  72. 'Pillow',
  73. 'numpy',
  74. 'pytest',
  75. 'pytest-flask',
  76. ],
  77. #extras_require={},
  78. #package_data={},
  79. #data_files=[],
  80. entry_points={
  81. 'console_scripts': [
  82. 'lsup-admin=lsup_admin:admin',
  83. 'profiler=profiler:run',
  84. 'fcrepo=wsgi:run',
  85. ],
  86. },
  87. # List additional URLs that are relevant to your project as a dict.
  88. #
  89. # This field corresponds to the "Project-URL" metadata fields:
  90. # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
  91. #
  92. # Examples listed include a pattern for specifying where the package tracks
  93. # issues, where the source is hosted, where to say thanks to the package
  94. # maintainers, and where to support the project financially. The key is
  95. # what's used to render the link text on PyPI.
  96. project_urls={ # Optional
  97. 'Source Code': 'https://github.com/scossu/lakesuperior/',
  98. 'Documentation': 'https://lakesuperior.readthedocs.io',
  99. 'Discussion': 'https://groups.google.com/forum/#!forum/lakesuperior',
  100. 'Bug Reports': 'https://github.com/scossu/lakesuperior/issues',
  101. }
  102. )