setup.py 3.0KB

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