From 368d5040fedc7bbfe9e793dfb56aed1a067b2f18 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 15 Feb 2012 21:17:05 -0500 Subject: [PATCH] Run update-copyright on itself. --- .update-copyright.conf | 26 ++++++++++++++++++++++++++ bin/update-copyright.py | 18 +++++++++++++++++- update_copyright/__init__.py | 18 +++++++++++++++++- update_copyright/log.py | 18 +++++++++++++++++- update_copyright/project.py | 2 +- update_copyright/utils.py | 18 +++++++++++++++++- update_copyright/vcs/__init__.py | 18 +++++++++++++++++- update_copyright/vcs/bazaar.py | 18 +++++++++++++++++- update_copyright/vcs/git.py | 18 +++++++++++++++++- update_copyright/vcs/mercurial.py | 18 +++++++++++++++++- update_copyright/vcs/utils.py | 18 +++++++++++++++++- 11 files changed, 180 insertions(+), 10 deletions(-) create mode 100644 .update-copyright.conf diff --git a/.update-copyright.conf b/.update-copyright.conf new file mode 100644 index 0000000..0f9597e --- /dev/null +++ b/.update-copyright.conf @@ -0,0 +1,26 @@ +[project] +name: update-copyright +vcs: Git + +[files] +authors: yes +files: yes + +# Write project license info to a Python module at `pyfile` +pyfile: update_copyright/license.py + +[copyright] +# Multi-line values are ok as long as they are indented more than +# the key that holds them. + +# Long-form copyright (for file headers) +long: This file is part of %(project)s. + + %(project)s is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + %(project)s is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with %(project)s. If not, see . + +# Short-form copyright (for the pyfile's `short_license`) +short: %(project)s comes with ABSOLUTELY NO WARRANTY and is licensed under the GNU General Public License. For details, %%(get-details)s. diff --git a/bin/update-copyright.py b/bin/update-copyright.py index 590f27b..cb186f8 100755 --- a/bin/update-copyright.py +++ b/bin/update-copyright.py @@ -1,6 +1,22 @@ #!/usr/bin/env python # -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . """Update copyright information with information from the VCS repository. diff --git a/update_copyright/__init__.py b/update_copyright/__init__.py index e523c34..c96891e 100644 --- a/update_copyright/__init__.py +++ b/update_copyright/__init__.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . """Automatically update copyright boilerplate. diff --git a/update_copyright/log.py b/update_copyright/log.py index e679a82..6d0f0ba 100644 --- a/update_copyright/log.py +++ b/update_copyright/log.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . """Tools for setting up a package logging. diff --git a/update_copyright/project.py b/update_copyright/project.py index 7680174..faf5989 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2012 W. Trevor King +# Copyright (C) 2012 W. Trevor King # # This file is part of update-copyright. # diff --git a/update_copyright/utils.py b/update_copyright/utils.py index 9aa9305..7cceb22 100644 --- a/update_copyright/utils.py +++ b/update_copyright/utils.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . import difflib as _difflib import os as _os diff --git a/update_copyright/vcs/__init__.py b/update_copyright/vcs/__init__.py index bd9248b..467c23b 100644 --- a/update_copyright/vcs/__init__.py +++ b/update_copyright/vcs/__init__.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . """Backends for version control systems.""" diff --git a/update_copyright/vcs/bazaar.py b/update_copyright/vcs/bazaar.py index e54eed5..ecdbda0 100644 --- a/update_copyright/vcs/bazaar.py +++ b/update_copyright/vcs/bazaar.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . import StringIO as _StringIO diff --git a/update_copyright/vcs/git.py b/update_copyright/vcs/git.py index 3cbbd5e..e65acb2 100644 --- a/update_copyright/vcs/git.py +++ b/update_copyright/vcs/git.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . from . import VCSBackend as _VCSBackend from . import utils as _utils diff --git a/update_copyright/vcs/mercurial.py b/update_copyright/vcs/mercurial.py index d71ce9c..70af636 100644 --- a/update_copyright/vcs/mercurial.py +++ b/update_copyright/vcs/mercurial.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . from __future__ import absolute_import diff --git a/update_copyright/vcs/utils.py b/update_copyright/vcs/utils.py index 3c3c1ba..3190f57 100644 --- a/update_copyright/vcs/utils.py +++ b/update_copyright/vcs/utils.py @@ -1,4 +1,20 @@ -# Copyright +# Copyright (C) 2012 W. Trevor King +# +# This file is part of update-copyright. +# +# update-copyright is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# update-copyright is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with update-copyright. If not, see +# . """Useful utilities for backend classes.""" -- 2.26.2