docker-compose-1.11.1.ebuild 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. PYTHON_COMPAT=( python{2_7,3_4} )
  5. inherit bash-completion-r1 distutils-r1 vcs-snapshot
  6. MY_PV=${PV//_/}
  7. DESCRIPTION="Multi-container orchestration for Docker"
  8. HOMEPAGE="https://www.docker.com/"
  9. SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz -> ${P}.tar.gz"
  10. LICENSE="Apache-2.0"
  11. SLOT="0"
  12. KEYWORDS="~amd64"
  13. IUSE="test"
  14. CDEPEND="
  15. dev-python/setuptools[${PYTHON_USEDEP}]
  16. >=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
  17. <dev-python/cached-property-2[${PYTHON_USEDEP}]
  18. >=dev-python/colorama-0.3.7[${PYTHON_USEDEP}]
  19. <dev-python/colorama-0.4[${PYTHON_USEDEP}]
  20. >=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
  21. <dev-python/dockerpty-0.5[${PYTHON_USEDEP}]
  22. >=dev-python/docker-py-2.0.2[${PYTHON_USEDEP}]
  23. <dev-python/docker-py-3.0[${PYTHON_USEDEP}]
  24. >=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
  25. <dev-python/docopt-0.7[${PYTHON_USEDEP}]
  26. >=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
  27. <dev-python/jsonschema-3[${PYTHON_USEDEP}]
  28. >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
  29. <dev-python/pyyaml-4[${PYTHON_USEDEP}]
  30. !~dev-python/requests-2.11.0[${PYTHON_USEDEP}]
  31. <dev-python/requests-2.12[${PYTHON_USEDEP}]
  32. >=dev-python/requests-2.6.1[${PYTHON_USEDEP}]
  33. >=dev-python/six-1.3.0[${PYTHON_USEDEP}]
  34. <dev-python/six-2[${PYTHON_USEDEP}]
  35. >=dev-python/texttable-0.8.1[${PYTHON_USEDEP}]
  36. <dev-python/texttable-0.9[${PYTHON_USEDEP}]
  37. >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]
  38. <dev-python/websocket-client-1.0[${PYTHON_USEDEP}]
  39. $(python_gen_cond_dep '>=dev-python/enum34-1.0.4[${PYTHON_USEDEP}]' 'python2_7' )
  40. $(python_gen_cond_dep '<dev-python/enum34-2[${PYTHON_USEDEP}]' 'python2_7' )
  41. "
  42. DEPEND="
  43. ${CDEPEND}
  44. test? (
  45. dev-python/pytest[${PYTHON_USEDEP}]
  46. $(python_gen_cond_dep '>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]' 'python2_7' )
  47. )
  48. "
  49. RDEPEND="${CDEPEND}"
  50. python_test() {
  51. ${PYTHON} -m pytest tests/unit || die "tests failed under ${EPYTHON}"
  52. }
  53. python_install_all() {
  54. newbashcomp contrib/completion/bash/docker-compose ${PN}
  55. insinto /usr/share/zsh/site-functions
  56. doins contrib/completion/zsh/*
  57. distutils-r1_python_install_all
  58. }