Re: Travis tests still failling on devel and gutter

2018-10-11 Thread Edward K. Ream
On Wed, Oct 10, 2018 at 11:56 PM Matt Wilkie  wrote:

> "fatal: No names found, cannot describe anything" is from executing `git
> describe --tags` in a shallow clone that isn't deep enough to include a
> tagged commit. Fixed in travis.yml by increasing the clone depth from
> default of 50 to 100 with commit 4d7e814
> .
> Note added to LeoDist.
>
> In the next commit: setup reverts to Leo internal version if git version
> number fails to parse (i.e. same behaviour as when not in a git clone).
>

Well done.  There is a green check mark next to devel
.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Travis tests still failling on devel and gutter

2018-10-10 Thread Matt Wilkie
"fatal: No names found, cannot describe anything" is from executing `git
describe --tags` in a shallow clone that isn't deep enough to include a
tagged commit. Fixed in travis.yml by increasing the clone depth from
default of 50 to 100 with commit 4d7e814
.
Note added to LeoDist.

In the next commit: setup reverts to Leo internal version if git version
number fails to parse (i.e. same behaviour as when not in a git clone).

Matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Travis tests still failling on devel and gutter

2018-10-10 Thread Matt Wilkie


> Recent revs have fixed all Leo-related problems.  Now there is a setup.py 
> problem:
> [...]
>  File "/home/travis/build/leo-editor/leo-editor/leo/core/leoGlobals.py", 
> line 4890, in gitDescribe
>  tag, distance, commit = describe[0].rsplit('-',2)
> IndexError: list index out of range
>
> Matt, I think this is for you.
>

I've encountered and fixed it before, I thought. It came up when there is 
no git history to reference for the version number. It's supposed to fall 
back gracefully. I'll look again!

Matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Travis tests still failling on devel and gutter

2018-10-10 Thread Edward K. Ream
On Wednesday, October 10, 2018 at 6:32:54 AM UTC-5, Edward K. Ream wrote:

> "@test event classes" is failing because QtCore hasn't been imported 
correctly:

Recent revs have fixed all Leo-related problems.  Now there is a setup.py 
problem:

$ python setup.py bdist_wheel | grep -v -e '^adding' -e '^copying'
fatal: No names found, cannot describe anything.
Traceback (most recent call last):
 File "setup.py", line 150, in 

Removing build, dist and egg directories
 version=get_version(__file__),
 File "setup.py", line 31, in get_version
 version = git_version(file)
 File "setup.py", line 43, in git_version
 tag, distance, commit = g.gitDescribe(root)
 File "/home/travis/build/leo-editor/leo-editor/leo/core/leoGlobals.py", 
line 4890, in gitDescribe
 tag, distance, commit = describe[0].rsplit('-',2)
IndexError: list index out of range

Matt, I think this is for you.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Travis tests still failling on devel and gutter

2018-10-10 Thread Edward K. Ream
"@test event classes" is failing because QtCore hasn't been imported 
correctly:

==
ERROR: runTest (leo.core.leoTest.GeneralTestCase)
@test event classes

Traceback (most recent call last):
 File "/home/travis/build/leo-editor/leo-editor/leo/core/leoTest.py", line 
198, in runTest
 builtins.execfile(scriptFile, d)
 File "/home/travis/.leo/scriptFile.py", line 5, in 
 import leo.plugins.qt_frame as qt_frame # EventWrapper
 File "/home/travis/build/leo-editor/leo-editor/leo/plugins/qt_frame.py", 
line 16, in 
 import leo.plugins.qt_events as qt_events
 File "/home/travis/build/leo-editor/leo-editor/leo/plugins/qt_events.py", 
line 46, in 
 class LeoQtEventFilter(QtCore.QObject):
AttributeError: 'NoneType' object has no attribute 'QObject'

I'm all ready a fan of continuous integration. Let's hope this is easily 
fixed.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.