Re: [python-uk] copyright info in source

2013-09-11 Thread Jonathan Hartley


On 10/09/13 20:07, John Lee wrote:

On Tue, 10 Sep 2013, Andy Robinson wrote:


On 9 September 2013 19:53, Russel Winder  wrote:

The licence statement has to be in each and every individual file since
in UK and USA law each file is deemed a separate work.



Russel, thanks.  That's interesting.

The practical issue is "how not to forget over time".  A test in a
test suite, or a hook in a setup /release script which walks the files
and warns you would be very useful for anyone who has to do this.   We
used to have a subversion commit hook once upon a time, but DVCS made
it trickier.


I've seen it done in a special "coding style test suite" (that gets 
run along with all the other tests).  Slightly nicer than a push hook 
IMO because you see it earlier and because it works the same way as 
all your other automated tests of your code.  There was a bit of 
special code so that you got one failure per coding style violation I 
think (including one per missing copyright statement), but those are 
bonus points.


Maybe somebody has written a test runner plugin that does that? My 
quick searches didn't turn one up, though there is this, which could 
easily be adapted (not a plugin, and looks like it wants to be)


http://stackoverflow.com/questions/12227443/is-there-a-plugin-for-pylint-and-pyflakes-for-nose-tests 




John
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk



I don't think it should be a test runner plugin, so much as just a test. 
Maybe a big common utility function (in a pypi package) which a tiny 
custom test function can then call to parametrize it for your project.


--
Jonathan Hartleytart...@tartley.comhttp://tartley.com
Made of meat.   +44 7737 062 225   twitter/skype: tartley

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] copyright info in source

2013-09-11 Thread Duncan Booth
On 10 September 2013 22:49, Russel Winder  wrote:

> You are correct that the author of any literary work has moral rights in
> that work. The copyright always rests with the original author unless
> explicitly assigned. However in the cases I have been involved with,
> barristers have chosen not to make any copyright arguments over source
> files where there was no explicit statement of copyright in the original
> file. Other issues yes, but not ones of copyright.
>

Copyright is mostly automatic, so a single copyright on the project, or
indeed none at all, won't make any significant difference to an individual
assertion in each file. However, if you want to be identified as the author
of a work you must explicitly assert that right. If each source file is a
separate work then I guess you may need to assert that in every file.
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk