setup.py 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # coding: utf-8
  2. # Always prefer setuptools over distutils
  3. from setuptools import setup
  4. from setuptools import find_packages
  5. from os import path
  6. here = path.abspath(path.dirname(__file__))
  7. install_requires = [
  8. 'marshmallow',
  9. 'apispec',
  10. 'multidict'
  11. ]
  12. tests_require = [
  13. 'pytest',
  14. 'pytest-cov',
  15. 'bottle',
  16. 'flask',
  17. 'pyramid',
  18. 'webtest',
  19. ]
  20. dev_require = [
  21. 'requests',
  22. ] + tests_require
  23. setup(
  24. name='hapic',
  25. # Versions should comply with PEP440. For a discussion on single-sourcing
  26. # the version across setup.py and the project code, see
  27. # https://packaging.python.org/en/latest/single_source_version.html
  28. version='0.21',
  29. description='HTTP api input/output manager',
  30. # long_description=long_description,
  31. long_description='',
  32. # The project's main homepage.
  33. url='https://github.com/algoo/hapic',
  34. # Author details
  35. author='Algoo Development Team',
  36. author_email='contact@algoo.fr',
  37. # Choose your license
  38. license='',
  39. # What does your project relate to?
  40. keywords='http api validation',
  41. # You can just specify the packages manually here if your project is
  42. # simple. Or you can use find_packages().
  43. packages=find_packages(exclude=['contrib', 'docs', 'tests']),
  44. # Alternatively, if you want to distribute just a my_module.py, uncomment
  45. # this:
  46. # py_modules=["my_module"],
  47. # List run-time dependencies here. These will be installed by pip when
  48. # your project is installed. For an analysis of "install_requires" vs pip's
  49. # requirements files see:
  50. # https://packaging.python.org/en/latest/requirements.html
  51. install_requires=install_requires,
  52. # List additional groups of dependencies here (e.g. development
  53. # dependencies). You can install these using the following syntax,
  54. # for example:
  55. # $ pip install -e ".[test]"
  56. extras_require={
  57. 'test': tests_require,
  58. 'dev': dev_require,
  59. },
  60. # If there are data files included in your packages that need to be
  61. # installed, specify them here. If using Python 2.6 or less, then these
  62. # have to be included in MANIFEST.in as well.
  63. # package_data={
  64. # 'sample': ['package_data.dat'],
  65. # },
  66. # Although 'package_data' is the preferred approach, in some case you may
  67. # need to place data files outside of your packages. See:
  68. # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
  69. # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
  70. # data_files=[('my_data', ['data/data_file'])],
  71. # To provide executable scripts, use entry points in preference to the
  72. # "scripts" keyword. Entry points provide cross-platform support and allow
  73. # pip to create the appropriate form of executable for the target platform.
  74. entry_points={},
  75. setup_requires=[],
  76. tests_require=tests_require,
  77. )