googleapis / gapic-generator-python

Generate Python API client libraries from Protocol Buffers.
Apache License 2.0
121 stars 66 forks source link

Update copyright year automatically #1965

Open vchudnov-g opened 6 months ago

vchudnov-g commented 6 months ago

Our policy is that we can update the copyright year every time we re-generate a file. We certainly need to have the current year on new files.

To update the year automatically, we should have it fetched from the system time in the template https://github.com/googleapis/gapic-generator-python/blob/main/gapic/templates/_license.j2

At the same time, we shouldn't have to manually update all the golden files every January to reflect the new year.

Some ideas:

vchudnov-g commented 6 months ago

Since the work above is not trivial, for the time being I am manually updating the copyright year to 2024 (see #1959)