forked from pool/python-concurrentloghandler
Depends on new package python-portalocker and fixes Python singlespec. OBS-URL: https://build.opensuse.org/request/show/610076 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-concurrentloghandler?expand=0&rev=10
29 lines
708 B
Diff
29 lines
708 B
Diff
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -262,13 +262,7 @@ setup(name='ConcurrentLogHandler',
|
|
"portalocker",
|
|
],
|
|
package_dir={ '' : 'src', },
|
|
- data_files=[
|
|
- ('tests', ["stresstest.py"]),
|
|
- ('docs', [
|
|
- 'README',
|
|
- 'LICENSE',
|
|
- ]),
|
|
- ],
|
|
+ data_files=[],
|
|
url="http://launchpad.net/python-concurrent-log-handler",
|
|
license = "http://www.apache.org/licenses/LICENSE-2.0",
|
|
description=doc.pop(0),
|
|
--- /dev/null
|
|
+++ b/run_tests.sh
|
|
@@ -0,0 +1,8 @@
|
|
+#!/bin/sh
|
|
+set -x
|
|
+
|
|
+RET=$($1 stresstest.py \
|
|
+ |& sed -n '/^Running internal diff/,/^\s*--- end of diff ----/p' \
|
|
+ |wc -l)
|
|
+rm -f test/*.log*
|
|
+[ $RET -eq 2 ]
|