[PATCH 0/6] Some python patches

2011-06-09 Thread Stefano Lattarini
Hello automakers.

In the first patch of this series I'll present the promised patch
ensuring that the py-compile script is run with $(SHELL) in the
automake-generated Makefiles.

While writing that patch, I've noticed (and plucked) a couple of
low-hanging fruits allowing small reductions in code duplication, and
improvements in consistency and error reporting.  Also, I've added
few test cases checking py-compile directly (not only through its use
in generated Makefiles).

The changes introduced by these patches should IMHO go in a separate
new branch 'python-work' based off of maint; we can later decide
whether to merge this into maint, or only into master.

I will push in 72 hours if there is no comment by then.

Regards,
  Stefano

Stefano Lattarini (6):
  python: run the 'py-compile' script with $(SHELL)
  py-compile: the '--destdir' option now accepts a blank argument
  python tests: add "unit tests" on py-compile
  py-compile: normalize error and help messages
  py-compile: complain on unrecognized options
  py-compile: '--' and non-option arguments terminate the option list

 ChangeLog  |   61 ++
 NEWS   |5 ++
 lib/am/python.am   |   19 +++-
 lib/py-compile |   51 ++
 tests/Makefile.am  |7 +++
 tests/Makefile.in  |7 +++
 tests/py-compile-basedir.test  |   51 +
 tests/py-compile-basic.test|   64 +++
 tests/py-compile-basic2.test   |   71 ++
 tests/py-compile-destdir.test  |   44 +++
 tests/py-compile-env.test  |   60 +
 tests/py-compile-option-terminate.test |   44 +++
 tests/py-compile-usage.test|   75 
 13 files changed, 529 insertions(+), 30 deletions(-)
 create mode 100755 tests/py-compile-basedir.test
 create mode 100755 tests/py-compile-basic.test
 create mode 100755 tests/py-compile-basic2.test
 create mode 100755 tests/py-compile-destdir.test
 create mode 100755 tests/py-compile-env.test
 create mode 100755 tests/py-compile-option-terminate.test
 create mode 100755 tests/py-compile-usage.test

-- 
1.7.2.3




Re: [PATCH 0/6] Some python patches

2011-06-12 Thread Stefano Lattarini
On Thursday 09 June 2011, Stefano Lattarini wrote:
> Hello automakers.
> 
> In the first patch of this series I'll present the promised patch
> ensuring that the py-compile script is run with $(SHELL) in the
> automake-generated Makefiles.
> 
> While writing that patch, I've noticed (and plucked) a couple of
> low-hanging fruits allowing small reductions in code duplication, and
> improvements in consistency and error reporting.  Also, I've added
> few test cases checking py-compile directly (not only through its use
> in generated Makefiles).
> 
> The changes introduced by these patches should IMHO go in a separate
> new branch 'python-work' based off of maint; we can later decide
> whether to merge this into maint, or only into master.
> 
> I will push in 72 hours if there is no comment by then.
> 
> Regards,
>   Stefano
> 
> Stefano Lattarini (6):
>   python: run the 'py-compile' script with $(SHELL)
>   py-compile: the '--destdir' option now accepts a blank argument
>   python tests: add "unit tests" on py-compile
>   py-compile: normalize error and help messages
>   py-compile: complain on unrecognized options
>   py-compile: '--' and non-option arguments terminate the option list
> 
>  ChangeLog  |   61 ++
>  NEWS   |5 ++
>  lib/am/python.am   |   19 +++-
>  lib/py-compile |   51 ++
>  tests/Makefile.am  |7 +++
>  tests/Makefile.in  |7 +++
>  tests/py-compile-basedir.test  |   51 +
>  tests/py-compile-basic.test|   64 +++
>  tests/py-compile-basic2.test   |   71 ++
>  tests/py-compile-destdir.test  |   44 +++
>  tests/py-compile-env.test  |   60 +
>  tests/py-compile-option-terminate.test |   44 +++
>  tests/py-compile-usage.test|   75 
> 
>  13 files changed, 529 insertions(+), 30 deletions(-)
>  create mode 100755 tests/py-compile-basedir.test
>  create mode 100755 tests/py-compile-basic.test
>  create mode 100755 tests/py-compile-basic2.test
>  create mode 100755 tests/py-compile-destdir.test
>  create mode 100755 tests/py-compile-env.test
>  create mode 100755 tests/py-compile-option-terminate.test
>  create mode 100755 tests/py-compile-usage.test
> 
> 
I've now pushed these patches to a new python-work branch.

Regards,
  Stefano