Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-19 Thread Danny Milosavljevic
Hi ng0,

> >   gnu: Add python-dulwich.

Do the git commandline tests execute for your dulwich?

For me they are skipped unless I hard-patch the paths to the git executable in 
the tests (in dulwich/tests/compat/utils.py ).



Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread ng0
Danny Milosavljevic  writes:

> Danny Milosavljevic (8):
>   gnu: python-oslosphinx: Update to 4.9.0.
>   gnu: Add python-reno.
>   gnu: python-requests: Update to 2.10.0.
>   gnu: Add python-dulwich.
>   gnu: Add python-geventhttpclient.
>   gnu: Add python-fastimport.
>   gnu: python-oslosphinx: Add python-reno.
>   gnu: python-dulwich: Fix tests.

This is unfortunate. I am just rebasing the branch from september
which somehow got stuck. I have dulwich, fastimport,
geventhttpclient, requests update, and many other python modules
in there.
I try to get the rebase done tomorrow and send them again.

>  gnu/packages/openstack.scm | 32 ++--
>  gnu/packages/python.scm| 95 
> +-
>  2 files changed, 122 insertions(+), 5 deletions(-)
>
>
>

-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Danny Milosavljevic
On Wed, 18 Jan 2017 00:46:56 +0100
Danny Milosavljevic  wrote:

> Nevermind, fixed by updating to unittest2 1.1.0 (which has more dependencies, 
> though).

Nope. Turns out that has the exact same problem. But I found the cause now and 
fixed it.




Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Marius Bakke
Danny Milosavljevic  writes:

> On Wed, 18 Jan 2017 00:17:06 +0100
> Marius Bakke  wrote:
>
>> Danny Milosavljevic  writes:
>> 
>> > Btw are you maybe working on unittest2 0.8.0 already?  
>> 
>> I was not finished with dulwich yet, so no. What is it needed for?
>
> python-unittest2 -> python-testtools -> python-reno

Ah, right. I have a feeling we are creating more failures than we are
fixing! But it's definitely needed.

Thanks a lot for taking this on. I'll dive into scipy next.


signature.asc
Description: PGP signature


Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Danny Milosavljevic
Nevermind, fixed by updating to unittest2 1.1.0 (which has more dependencies, 
though).



Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Danny Milosavljevic
On Wed, 18 Jan 2017 00:17:06 +0100
Marius Bakke  wrote:

> Danny Milosavljevic  writes:
> 
> > Btw are you maybe working on unittest2 0.8.0 already?  
> 
> I was not finished with dulwich yet, so no. What is it needed for?

python-unittest2 -> python-testtools -> python-reno

Right now 2 of python-unittest2's unittests fail when using:

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4ad8f3a04..8001365c4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1646,17 +1646,26 @@ interfaces and processes.")
 (define-public python-unittest2
   (package
 (name "python-unittest2")
-(version "0.5.1")
+(version "0.8.0")
 (source
  (origin
(method url-fetch)
-   (uri (string-append
- 
"https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-";
- version ".tar.gz"))
+   (uri (pypi-uri "unittest2" version))
(sha256
 (base32
- "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"
+ "0akyi9rs4dbnj1vzdcs50cab6x6zksiw7rn39jwacgygc71bj05v"
 (build-system python-build-system)
+(arguments
+ `(#:phases
+   (modify-phases %standard-phases
+ (add-after 'unpack 'fix-argparse
+   (lambda _
+ (substitute* "setup.py"
+   (("argparse") "configargparse"))
+ #t)
+(propagated-inputs
+ `(("python-six" ,python-six)
+   ("python-configargparse" ,python-configargparse)))
 (home-page "http://pypi.python.org/pypi/unittest2";)
 (synopsis "Python unit testing library")
 (description

The failures are:

==
FAIL: test_loadTestsFromName__relative_malformed_name 
(unittest2.test.test_loader.Test_TestLoader)
--
Traceback (most recent call last):
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py",
 line 425, in check_module_lookup_error
"'module' object has no attribute '%s'" % attr, attr, regex)
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py",
 line 417, in _check_module_lookup_error
'missing error string in %r' % error)
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/case.py",
 line 1094, in assertIn
self.fail(self._formatMessage(msg, standardMsg))
AssertionError: "'module' object has no attribute 'abc () //'" not found in 
'Failed to access attribute:\nTraceback (most recent call last):\n  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py",
 line 176, in loadTestsFromName\nparent, obj = obj, getattr(obj, 
part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n' : 
missing error string in 'Failed to access attribute:\nTraceback (most recent 
call last):\n  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py",
 line 176, in loadTestsFromName\nparent, obj = obj, getattr(obj, 
part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py",
 line 518, in test_loadTestsFromName__relative_malformed_name
error, test, 'unittest2', 'abc () //', 'abc \(\) //')
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py",
 line 429, in check_module_lookup_error
"module '%s' has no attribute '%s'" % (name, regex), attr, regex)
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/test/test_loader.py",
 line 417, in _check_module_lookup_error
'missing error string in %r' % error)
AssertionError: "module 'unittest2' has no attribute 'abc \\(\\) //'" not found 
in 'Failed to access attribute:\nTraceback (most recent call last):\n  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py",
 line 176, in loadTestsFromName\nparent, obj = obj, getattr(obj, 
part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n' : 
missing error string in 'Failed to access attribute:\nTraceback (most recent 
call last):\n  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/loader.py",
 line 176, in loadTestsFromName\nparent, obj = obj, getattr(obj, 
part)\nAttributeError: module \'unittest2\' has no attribute \'abc () //\'\n'

==
FAIL: test_loadTestsFromNames__relative_malformed_name 
(unittest2.test.test_loader.Test_TestLoader)
--
Traceback (most recent call last):
  File 
"/tmp/guix-build-python-unittest2-0.8.0.drv-0/unittest2-0.8.0/unittest2/t

Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Marius Bakke
Danny Milosavljevic  writes:

> Btw are you maybe working on unittest2 0.8.0 already?

I was not finished with dulwich yet, so no. What is it needed for?

I was planning to do scipy next, but I'll gladly do something easier :-D


signature.asc
Description: PGP signature


Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Danny Milosavljevic
Btw are you maybe working on unittest2 0.8.0 already?




Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Danny Milosavljevic
Hi,

On Tue, 17 Jan 2017 23:31:52 +0100
Marius Bakke  wrote:

> Danny Milosavljevic  writes:
> 
> > Danny Milosavljevic (8):
> >   gnu: python-oslosphinx: Update to 4.9.0.
> >   gnu: Add python-reno.
> >   gnu: python-requests: Update to 2.10.0.
> >   gnu: Add python-dulwich.
> >   gnu: Add python-geventhttpclient.
> >   gnu: Add python-fastimport.
> >   gnu: python-oslosphinx: Add python-reno.
> >   gnu: python-dulwich: Fix tests.
> >
> >  gnu/packages/openstack.scm | 32 ++--
> >  gnu/packages/python.scm| 95 
> > +-
> >  2 files changed, 122 insertions(+), 5 deletions(-)  
> 
> Wow, thanks! Not-very-coincidentally was I working on the same (this is
> to fix oslosphinx on python-tests branch).
> 
> I'll comment on the commits individually.

It's not done yet, it's just better than before - and I figured 8 commits at 
once is more than enough :)



Re: [PATCH 0/8] Make python-oslosphinx work in python-tests branch.

2017-01-17 Thread Marius Bakke
Danny Milosavljevic  writes:

> Danny Milosavljevic (8):
>   gnu: python-oslosphinx: Update to 4.9.0.
>   gnu: Add python-reno.
>   gnu: python-requests: Update to 2.10.0.
>   gnu: Add python-dulwich.
>   gnu: Add python-geventhttpclient.
>   gnu: Add python-fastimport.
>   gnu: python-oslosphinx: Add python-reno.
>   gnu: python-dulwich: Fix tests.
>
>  gnu/packages/openstack.scm | 32 ++--
>  gnu/packages/python.scm| 95 
> +-
>  2 files changed, 122 insertions(+), 5 deletions(-)

Wow, thanks! Not-very-coincidentally was I working on the same (this is
to fix oslosphinx on python-tests branch).

I'll comment on the commits individually.


signature.asc
Description: PGP signature