setup.py 2.8KB

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