copyrightupdate-1.2
توضیحات
Updates copyright years.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | copyrightupdate-1.2 |
| نام | copyrightupdate |
| نسخه کتابخانه | 1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Martin Ueding |
| ایمیل نویسنده | dev@martin-ueding.de |
| آدرس صفحه اصلی | http://martin-ueding.de/projects/copyright-updater/ |
| آدرس اینترنتی | https://pypi.org/project/copyrightupdate/ |
| مجوز | GPLv2+ |
Parses the given lines and updates the copyright string.
Say you have a copyright string in the top of some source file, like::
# Copyright (c) 2010 John Doe <john@example.com>
If you edit this file, you would like the copyright notice so reflect the
current year as well, like::
# Copyright (c) 2010, 2012 John Doe <john@example.com>
This script checks for outdated copyright strings and updates them.
Ranges are detected and collapsed intelligently. If you have ``2008, 2009,
2010``, it will become ``2008-2010``. If you mix ranges and single years, this
will also be picked up correctly::
2002, 2003, 2004, 2006, 2008, 2009, 2012
That list becomes::
2002-2004, 2006, 2008-2009, 2012
In order to prevent changing of copyright notices that do not carry your name,
you can create an INI style configuration file at
``~/.config/copyright_updater.ini`` which would look like that:
.. code:: ini
[name]
name = John Doe
email = john@example.com
[unicode]
replace = true
Additionally, it can replace ``(c)`` with ``©`` automatically, if you set the
option in the config file.
نحوه نصب
نصب پکیج whl copyrightupdate-1.2:
pip install copyrightupdate-1.2.whl
نصب پکیج tar.gz copyrightupdate-1.2:
pip install copyrightupdate-1.2.tar.gz