setup.py 3.0KB

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