setup.py 3.2KB

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