summaryrefslogtreecommitdiff
path: root/dev-python/livereload
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/livereload
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/livereload')
-rw-r--r--dev-python/livereload/Manifest10
-rw-r--r--dev-python/livereload/files/fix-tests.patch77
-rw-r--r--dev-python/livereload/livereload-2.3.2.ebuild41
-rw-r--r--dev-python/livereload/livereload-2.4.0.ebuild38
-rw-r--r--dev-python/livereload/livereload-2.4.1.ebuild38
-rw-r--r--dev-python/livereload/metadata.xml11
6 files changed, 215 insertions, 0 deletions
diff --git a/dev-python/livereload/Manifest b/dev-python/livereload/Manifest
new file mode 100644
index 000000000000..920261c849b3
--- /dev/null
+++ b/dev-python/livereload/Manifest
@@ -0,0 +1,10 @@
+AUX fix-tests.patch 2230 SHA256 8786c0e0ed3a3f08a9e6745a9196ac32e6a384cf5786244091ae3531e64c6a05 SHA512 ca99482a11acd94428ff441bab2b85bfea3c49c2bde74a99f754324f4e7e8d966f2d3fef5cc367e69003979a8cc26b505a975e7a1e7ddaa5b3ca357d6b806301 WHIRLPOOL 51c07ba64726ed9697a88b92588b62fa6172c39d994c70029bbe3b90f9ef7b7486df047e96e8658e6483100c3855cc458dcd4b0fe5692ec4276d62676452c93f
+DIST livereload-2.3.2.tar.gz 24119 SHA256 fa2959005a134d767409c129cbf94528a0eb5022c915da9c685e14f1adb81b63 SHA512 59dc5be184d80a8b3aa6f98a6bc12f98f2efe00a0497deadfe5275222be2e0865e182cf0d83fc7a6e5f7297a7bf26a30c3ad9af5eeb2517af8b7ab3946e4bb1d WHIRLPOOL acf0c4ffa017a65d67423bb28b36cfd4e8acec59c47cc845f98669a3368920fa1e4e33b4c86e00082aeb416225066091305adcf1e8919071825a192ab5127180
+DIST livereload-2.4.0.tar.gz 25258 SHA256 a3f162357d886710a317f6f8c0595ac1db176bd9db171f0ca751c4954c29b5e2 SHA512 9b961ed41224359e986873973840fae43387af1b773328ab1262d095879aeff98090d736d696abdfcd9b2f1c127a061a29d044df7cfa15ba218b0162576093a3 WHIRLPOOL 268d274d57b1e7f7587fd690dac2bae7051dde2d1b110a8953a84eea6e08017488d4ee0e59fbc1bb0a9468d7925913ca8cb28a74c13c291fd7e004a5322160cf
+DIST livereload-2.4.1.tar.gz 25593 SHA256 8a29fe9c869181f8e1617c2e32d6a3bf896d7da20267dc682150e7c98d230b55 SHA512 9106fe1894092ab336270f539be41d4db2d277560a41898e45014e34783ab0b601c993a5a5831c951d313db98ea835aecc8eb31468ba186e243a28df75bfe9bb WHIRLPOOL 70142a5bc1c6c7c4d2af20840eff93a19db7842dfa8b1d3ffd79904c924e9f6e9f93fd6c3dac976d22ace3cdbb833eb57f2ccb26b6abf0e03d67a57d97d845fd
+EBUILD livereload-2.3.2.ebuild 898 SHA256 90914895804bf65fa39dd09f4294ed25c42afec2371e529e8b008858d60fd4c7 SHA512 3378e093a9fa7bfbb1c1983a2bc20d5ac815573cc7d4121c9a6994d2d2bff97a3566d2df200d278a19e7ffc0c8a958d80bb3271c6a4f670723ef171750c9405d WHIRLPOOL 13c1164ab4a043d164c4173a7f4dc4c51e96252cb513ed0765e58f7a21214667e20fdb5cfb3ab902640d37b9f8aaf4995ac5a59e38fe64016ab8a15010e9ab7f
+EBUILD livereload-2.4.0.ebuild 857 SHA256 746bf966e00d9767f343aa6419461e05b917145a7a31201a6bac2e1ddeaa0923 SHA512 d934f170ef4ab92b2f26064ccc42a5b5145d8f3a00d189467a94c37cfd576ee93820b89b69a313f691d6684625f8ad36fea51dbb6d34beb1b134494c2dee3fdb WHIRLPOOL f14228bec197ecae3c73ae862a520513bd75eafe42d1a7f35add35538b8583fa62b7259fd16bc2bf5de7afbf0652983760bea44ef67cf2ea3f07395a49ea1211
+EBUILD livereload-2.4.1.ebuild 862 SHA256 33975d333c2bcb8e165611af45e2c88e2400d5be279ed3169c88939da494024d SHA512 fa6ecc738ba79b41bab45743bcffe42653c614f5c2bf681940141aebeca1cce1390ebcaf438bd5ee0cebc89d8096f3c0679ee4ec0631237bd9208515c8ff295b WHIRLPOOL 728bfc17820ed514ab6410650bf0aa21feba4914c3eb7945788200dc426f5bc3f06c3ae496003fe2e2b94c6d9ebdf84f94519bad087d21f142aa1bbcffd19ad9
+MISC ChangeLog 2616 SHA256 0f6bd2b14d73a716ba0ae305cd3142ae45ba3ea05f3eeca6dc5b3abf26d26782 SHA512 286e1f0514083aff31e6b27604cfa6c154f6fe3aa0618259a6fd2ebcdc4b2bd6229e85c7d7d3205114ff838591fd29b6a81028720a24058d3b25e156a14305bb WHIRLPOOL e536f7753219d5671804cf1ac5d2873fa5b331db8b42cd4349b5d70fdde769609f8e118dcbe1d2a989b54dde8e042af9fa022671d37a8b504f86dc0155be5ce5
+MISC ChangeLog-2015 739 SHA256 6c1e20530d6793e339189dd564722ebdc195ac9fedc7724f918f3b5d5c670738 SHA512 1256f489a9375431c71b72b1f13c432253f17fef806053efdddaeb20234ecaee4a8b4f55f10457943295948c4d2703b1c8813044aa4b177bf732943d66e21d51 WHIRLPOOL dcdd5d2acce30d47650e2f56bbdbc409c9743f6cdadcd499488df2a1aa1e5284c94809cef431496fc5f811b8836681431dbbbce3cbdd1ff88f2e7b7432ec2192
+MISC metadata.xml 336 SHA256 3df91ead96483a8e20f944c7b0ed22199d5908f0bc0c32a95e107624a4f853e8 SHA512 941dfac2634cb5bfe9250bdb75c192e0994b978251de8627232534448e28c5bbcefd0b0f7ae36c6cce3a746058a2c623af39b2f890bd366b1f8b20cb98e3dfd3 WHIRLPOOL a9b69469d50910babccd3e7b09b3dec5c70473755a0505142e976f66af509c860a200015f34b80818b2af57d5174a0623712bbececc272442e7d2efbb940c606
diff --git a/dev-python/livereload/files/fix-tests.patch b/dev-python/livereload/files/fix-tests.patch
new file mode 100644
index 000000000000..2c9208ad17aa
--- /dev/null
+++ b/dev-python/livereload/files/fix-tests.patch
@@ -0,0 +1,77 @@
+diff --git a/tests/test_watcher.py b/tests/test_watcher.py
+index fa0ae41..5310bdc 100644
+--- a/tests/test_watcher.py
++++ b/tests/test_watcher.py
+@@ -3,18 +3,22 @@
+ import os
+ import time
+ import shutil
++import unittest
+ from livereload.watcher import Watcher
+
+ tmpdir = os.path.join(os.path.dirname(__file__), 'tmp')
+
+
+-class TestWatcher(object):
++class TestWatcher(unittest.TestCase):
+
+ def setUp(self):
+ if os.path.isdir(tmpdir):
+ shutil.rmtree(tmpdir)
+ os.mkdir(tmpdir)
+
++ def tearDown(self):
++ shutil.rmtree(tmpdir)
++
+ def test_watch_dir(self):
+ os.mkdir(os.path.join(tmpdir, '.git'))
+ os.mkdir(os.path.join(tmpdir, '.hg'))
+@@ -25,6 +29,9 @@ class TestWatcher(object):
+ watcher.watch(tmpdir)
+ assert watcher.is_changed(tmpdir) is False
+
++ # sleep 1 second so that mtime will be different
++ time.sleep(1)
++
+ with open(os.path.join(tmpdir, 'foo'), 'w') as f:
+ f.write('')
+
+@@ -35,6 +42,9 @@ class TestWatcher(object):
+ watcher = Watcher()
+ watcher.count = 0
+
++ # sleep 1 second so that mtime will be different
++ time.sleep(1)
++
+ filepath = os.path.join(tmpdir, 'foo')
+ with open(filepath, 'w') as f:
+ f.write('')
+@@ -51,22 +61,24 @@ class TestWatcher(object):
+ with open(filepath, 'w') as f:
+ f.write('')
+
+- assert watcher.examine() == os.path.abspath(filepath)
++ rv = watcher.examine()
++ assert rv[0] == os.path.abspath(filepath)
+ assert watcher.count == 1
+
+ def test_watch_glob(self):
+ watcher = Watcher()
+ watcher.watch(tmpdir + '/*')
+- assert watcher.examine() is None
++ assert watcher.examine() == (None, None)
+
+ with open(os.path.join(tmpdir, 'foo.pyc'), 'w') as f:
+ f.write('')
+
+- assert watcher.examine() is None
++ assert watcher.examine() == (None, None)
+
+ filepath = os.path.join(tmpdir, 'foo')
+
+ with open(filepath, 'w') as f:
+ f.write('')
+
+- assert watcher.examine() == os.path.abspath(filepath)
++ rv = watcher.examine()
++ assert rv[0] == os.path.abspath(filepath)
diff --git a/dev-python/livereload/livereload-2.3.2.ebuild b/dev-python/livereload/livereload-2.3.2.ebuild
new file mode 100644
index 000000000000..53379d37ad1d
--- /dev/null
+++ b/dev-python/livereload/livereload-2.3.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Python LiveReload is an awesome tool for web developers"
+HOMEPAGE="https://github.com/lepture/python-livereload"
+SRC_URI="https://github.com/lepture/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE="examples test"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+RDEPEND="www-servers/tornado[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}"/fix-tests.patch
+ )
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ nosetests || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( example/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/livereload/livereload-2.4.0.ebuild b/dev-python/livereload/livereload-2.4.0.ebuild
new file mode 100644
index 000000000000..f6eee14f1ff5
--- /dev/null
+++ b/dev-python/livereload/livereload-2.4.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_4 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Python LiveReload is an awesome tool for web developers"
+HOMEPAGE="https://github.com/lepture/python-livereload"
+SRC_URI="https://github.com/lepture/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples test"
+
+CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="
+ ${CDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ dev-python/six[${PYTHON_USEDEP}]
+ www-servers/tornado[${PYTHON_USEDEP}]
+"
+
+python_test() {
+ nosetests || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( example/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/livereload/livereload-2.4.1.ebuild b/dev-python/livereload/livereload-2.4.1.ebuild
new file mode 100644
index 000000000000..e3b937af1d0a
--- /dev/null
+++ b/dev-python/livereload/livereload-2.4.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Python LiveReload is an awesome tool for web developers"
+HOMEPAGE="https://github.com/lepture/python-livereload"
+SRC_URI="https://github.com/lepture/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE="examples test"
+
+CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="
+ ${CDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ dev-python/six[${PYTHON_USEDEP}]
+ www-servers/tornado[${PYTHON_USEDEP}]
+"
+
+python_test() {
+ nosetests || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( example/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/livereload/metadata.xml b/dev-python/livereload/metadata.xml
new file mode 100644
index 000000000000..fcbde6cbf668
--- /dev/null
+++ b/dev-python/livereload/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lepture/python-livereload</remote-id>
+ </upstream>
+</pkgmetadata>