Repository URL to install this package:
|
Version:
1.0.1.0 ▾
|
| scripts |
| copyright |
| test |
| setup.py |
| setup.cfg |
| PKG-INFO |
| README.md |
Add or replace license/copyright boilerplate in source code files.
All contiguous comment blocks (bounded by empty or code lines) that contain a copyright message are stripped before injecting the new message.
You should commit all your code into a repo before running this program and check the results with a diff utility.
Process current directory recursively and autodetect files.
$ copyright -c config.json
Process files matching wildcards, appending to end of file.
$ copyright -a 'Joe Smith' -p MyApp -l mit -i '*.py,foo*.h,script?' --back
Use custom template.
$ copyright -c config.json -t my_templates.json --license my-license-2.0
With PyPI.
$ pip install copyright
With tarball.
$ python setup.py install
$ make test
Q1. How can you keep multiple licenses in a file? A1. One strategy is to create a custom templates file that has all the licenses merged into one key/value pair, and then process your specific list of files.
copyright Copyright (C) 2016 Remik Ziemlinski
This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the conditions of the GPLv3 license.