setup.py 3.0KB

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