raven-9999: Convert the old 2.0.10 ebuild into a live ebuild dev-python/raven
authorW. Trevor King <wking@tremily.us>
Tue, 30 Sep 2014 19:41:04 +0000 (12:41 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 8 Oct 2014 16:21:40 +0000 (09:21 -0700)
That also serves double-duty as a 5.0.0 ebuild, since the changes
between 5.0.0 and the current master don't require different install
instructions.

Upgrade changes:

* Modernize PYTHON_COMPAT entries.  The upstream package is compatible
  with all of these (or at least tries to test on all of these [1]).
  They test on 2.6 too, but that's not in the Portage tree anymore.
* I've added an if block to swap in git-2 live ebuild handling
  depending on the package version.
* I've dropped the runtime dependencies, because the only runtime
  dependency is simplejson, which I imagine they only use for Python
  2.6 support [2].
* The new dependencies are almost straight from the 5.0.0 setup.py,
  except I don't include python-coveralls (and neither will the next
  version of setup.py [3]).  You'll want to emerge it by hand if
  you're using 5.0.0, to avoid Setuptools trying to install it for
  you.

[1]: https://github.com/getsentry/raven-python/blob/5.0.0/.travis.yml
[2]: https://github.com/getsentry/raven-python/blob/5.0.0/docs/install/index.rst#requirements
[3]: https://github.com/getsentry/raven-python/pull/497
     9b5c3d3d (setup.py: Remove python-coveralls requirement,
     2014-09-30)

Manifest
raven-2.0.10.ebuild [deleted file]
raven-5.0.0.ebuild [new symlink]
raven-9999.ebuild [new file with mode: 0644]

index 932bef9649a7476a28811ea200835ee1abed98df..2f602f0554818e6b3f70eb382eaaab70a87cb591 100644 (file)
--- a/Manifest
+++ b/Manifest
@@ -1,11 +1 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
-
-DIST raven-2.0.10.tar.gz 55846 SHA256 16603933d2150c54984c69400c6ce3a09ee9edd3957eb9d33d399804ea201da1 SHA512 2a59712026c86dc7fce941d39c711c1c4380be3bc7f0bbad2d8561c05a059416b0fa84fc44638e7acf477180e0c5a3ade3ca9023d794fafa9d48f9003617a36f WHIRLPOOL afc249fe3c22698a5b289b5c1227e647ebc9c12d5fd4f2a7f9ae05bcc4dd3b896770e58ce23748ae4a979b0cf26c80e14bee250364761d7d4efba72f30f42256
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iEYEAREKAAYFAlDQ5Z0ACgkQ1fmVwcYIWAY8OQCeIoI/CQqgZlU0P7URAAMrJGFS
-TVUAniS1GWghCxa8DDLCVq4oFMXj3Xz+
-=5R+T
------END PGP SIGNATURE-----
+DIST raven-5.0.0.tar.gz 240287 SHA256 012de5afcd8af43db2d21bc074bc3037ca00f109fdbbebc18a9c6b016f9d63b1 SHA512 7b00d3e115be0bb785b42df36f641301ea76f507d340b39a3809ab6382a47c9950cc9b3ea27116005f1ec227f987329b0e48bb72466148d8a802020eeb95b696 WHIRLPOOL add23d178cda15a2ae56d1765aad0098003f978b38ebd91fbb7cc577899a1c52b8d80010ec4a058cc702b24ef3cad3389b52c1b9e398774eb5b01f7e1678b6d1
diff --git a/raven-2.0.10.ebuild b/raven-2.0.10.ebuild
deleted file mode 100644 (file)
index 388f9ad..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="5"
-PYTHON_COMPAT=( python2_{5,6,7} )
-
-inherit distutils-r1
-
-DESCRIPTION="Raven is a client for Sentry"
-HOMEPAGE="http://github.com/getsentry/raven-python"
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-RDEPEND="
-       >=dev-python/blinker-1.1
-       >=dev-python/celery-2.5
-       >=dev-python/django-1.2
-       >=dev-python/django-celery-2.5
-       >=dev-python/flask-0.8
-       dev-python/logbook
-       dev-python/webob
-       dev-python/pytz
-"
-DEPEND="${RDEPEND}
-       test? (
-               dev-python/django-nose
-               dev-python/nose
-               dev-util/mock
-               dev-python/pep8
-               dev-python/unittest2 )
-"
-RDEPEND="${RDEPEND}
-       <dev-python/django-1.5
-"
diff --git a/raven-5.0.0.ebuild b/raven-5.0.0.ebuild
new file mode 120000 (symlink)
index 0000000..4d91556
--- /dev/null
@@ -0,0 +1 @@
+raven-9999.ebuild
\ No newline at end of file
diff --git a/raven-9999.ebuild b/raven-9999.ebuild
new file mode 100644 (file)
index 0000000..2d3e10c
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit git-2
+       EGIT_REPO_URI="git://github.com/getsentry/${PN}-python.git"
+       SRC_URI=""
+else
+       SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="Raven is a client for Sentry"
+HOMEPAGE="http://github.com/getsentry/raven-python"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+       test? (
+               dev-python/anyjson[${PYTHON_USEDEP}]
+               >=dev-python/blinker-1.1[${PYTHON_USEDEP}]
+               dev-python/bottle[${PYTHON_USEDEP}]
+               >=dev-python/celery-2.5[${PYTHON_USEDEP}]
+               >=dev-python/django-1.4[${PYTHON_USEDEP}]
+               >=dev-python/django-celery-2.5[${PYTHON_USEDEP}]
+               >=dev-python/exam-0.5.2[${PYTHON_USEDEP}]
+               >=dev-python/flask-0.8[${PYTHON_USEDEP}]
+               >=dev-python/flask-login-0.2.0[${PYTHON_USEDEP}]
+               dev-python/logbook[${PYTHON_USEDEP}]
+               dev-python/mock[${PYTHON_USEDEP}]
+               dev-python/nose[${PYTHON_USEDEP}]
+               dev-python/pep8[${PYTHON_USEDEP}]
+               dev-python/pytest[${PYTHON_USEDEP}]
+               >=dev-python/pytest-cov-1.4[${PYTHON_USEDEP}]
+               dev-python/pytest-django[${PYTHON_USEDEP}]
+               dev-python/pytz[${PYTHON_USEDEP}]
+               dev-python/webob[${PYTHON_USEDEP}]
+               dev-python/webtest[${PYTHON_USEDEP}]
+               www-servers/tornado[${PYTHON_USEDEP}]
+               python_targets_python3_3? (
+                       dev-python/aiohttp[python_targets_python3_3]
+               )
+               python_targets_python3_4? (
+                       dev-python/aiohttp[python_targets_python3_4]
+               )
+               python_targets_python2_7? (
+                       dev-python/paste[python_targets_python2_7]
+                       dev-python/unittest2[python_targets_python2_7]
+                       dev-python/webpy[python_targets_python2_7]
+               )
+       )"
+
+python_test() {
+       py.test || die "Testsuite failed under ${EPYTHON}"
+}