FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 02-16-2011, 10:27 PM
Rémy Oudompheng
 
Default master git branch updated to use python3

Hello,

If you are using namcap for the main git repository, you are now required
to use Python 3 ("python" package) to use it. I have added a unit test for
the "rpath" rule, so that the only untested rule is the depends rule.

I will add a unit test for that rule before adding any new features to
namcap.

--
Rémy.
 
Old 02-17-2011, 02:21 AM
Dan McGee
 
Default master git branch updated to use python3

On Wed, Feb 16, 2011 at 5:27 PM, Rémy Oudompheng
<remyoudompheng@gmail.com> wrote:
> Hello,
>
> If you are using namcap for the main git repository, you are now required
> to use Python 3 ("python" package) to use it. I have added a unit test for
> the "rpath" rule, so that the only untested rule is the depends rule.
>
> I will add a unit test for that rule before adding any new features to
> namcap.

Getting an error here right now on a quick smoke test:

dmcgee@galway ~/projects/namcap (master)
$ ./namcap-devel /home/makepkg/packages/weka-3.7.3-1-any.pkg.tar.xz
Traceback (most recent call last):
File "/usr/lib/python3.1/runpy.py", line 128, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.1/runpy.py", line 34, in _run_code
exec(code, run_globals)
File "/home/dmcgee/projects/namcap/namcap.py", line 239, in <module>
process_realpackage(package, active_modules)
File "/home/dmcgee/projects/namcap/namcap.py", line 116, in
process_realpackage
if pkg.prereq() == "extract":
AttributeError: 'package' object has no attribute 'prereq'

where namcap-devel (I should probably have just checked this handy
script in in a bit more useful fashion) is:

$ cat namcap-devel
#!/bin/sh
PATH="$(pwd):$PATH"
PYTHONPATH="$(pwd)"
export PYTHONPATH
./namcap -t namcap-tags $@

My script also might be busted?

-Dan
 
Old 02-17-2011, 05:22 AM
Rémy Oudompheng
 
Default master git branch updated to use python3

On Wed 16 February 2011 at 21:21 -0600, Dan McGee wrote:
> On Wed, Feb 16, 2011 at 5:27 PM, Rémy Oudompheng
> <remyoudompheng@gmail.com> wrote:
> > Hello,
> >
> > If you are using namcap for the main git repository, you are now required
> > to use Python 3 ("python" package) to use it. I have added a unit test for
> > the "rpath" rule, so that the only untested rule is the depends rule.
> >
> > I will add a unit test for that rule before adding any new features to
> > namcap.
>
> Getting an error here right now on a quick smoke test:
>
> dmcgee@galway ~/projects/namcap (master)
> $ ./namcap-devel /home/makepkg/packages/weka-3.7.3-1-any.pkg.tar.xz
> Traceback (most recent call last):
> File "/usr/lib/python3.1/runpy.py", line 128, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
> File "/usr/lib/python3.1/runpy.py", line 34, in _run_code
> exec(code, run_globals)
> File "/home/dmcgee/projects/namcap/namcap.py", line 239, in <module>
> process_realpackage(package, active_modules)
> File "/home/dmcgee/projects/namcap/namcap.py", line 116, in
> process_realpackage
> if pkg.prereq() == "extract":
> AttributeError: 'package' object has no attribute 'prereq'

Sorry for the inconvenience. I had removed some code lines too early.
I think several rules are broken by Python 3, but the dynamic typing
hides much of the problems : more regression tests should be added,
especially for the depends rule.

--
Rémy.
 
Old 02-17-2011, 11:59 AM
Dan McGee
 
Default master git branch updated to use python3

On Thu, Feb 17, 2011 at 12:22 AM, Rémy Oudompheng
<remyoudompheng@gmail.com> wrote:
> On Wed 16 February 2011 at 21:21 -0600, Dan McGee wrote:
>> On Wed, Feb 16, 2011 at 5:27 PM, Rémy Oudompheng
>> <remyoudompheng@gmail.com> wrote:
>> > Hello,
>> >
>> > If you are using namcap for the main git repository, you are now required
>> > to use Python 3 ("python" package) to use it. I have added a unit test for
>> > the "rpath" rule, so that the only untested rule is the depends rule.
>> >
>> > I will add a unit test for that rule before adding any new features to
>> > namcap.
>>
>> Getting an error here right now on a quick smoke test:
>>
>> dmcgee@galway ~/projects/namcap (master)
>> $ ./namcap-devel /home/makepkg/packages/weka-3.7.3-1-any.pkg.tar.xz
>> Traceback (most recent call last):
>> * File "/usr/lib/python3.1/runpy.py", line 128, in _run_module_as_main
>> * * "__main__", fname, loader, pkg_name)
>> * File "/usr/lib/python3.1/runpy.py", line 34, in _run_code
>> * * exec(code, run_globals)
>> * File "/home/dmcgee/projects/namcap/namcap.py", line 239, in <module>
>> * * process_realpackage(package, active_modules)
>> * File "/home/dmcgee/projects/namcap/namcap.py", line 116, in
>> process_realpackage
>> * * if pkg.prereq() == "extract":
>> AttributeError: 'package' object has no attribute 'prereq'
>
> Sorry for the inconvenience. I had removed some code lines too early.
> I think several rules are broken by Python 3, but the dynamic typing
> hides much of the problems : more regression tests should be added,
> especially for the depends rule.

Not much of an inconvenience, was just trying to give your new code a
test drive. Thanks for the fixes you checked in; seems to be working
as expected now.

Feel free to adapt that namcap-devel script and check it in; I found
it helpful during development to keep the tags file and everything
else in sync as you added rules.

-Dan
 

Thread Tools




All times are GMT. The time now is 11:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org