Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not claim copyright for future years #3710

Merged
merged 1 commit into from Jul 23, 2018
Merged

Do not claim copyright for future years #3710

merged 1 commit into from Jul 23, 2018

Conversation

bmwiedemann
Copy link
Contributor

When building today's python-pytest-doc openSUSE package
in the year 2033, the documentation .html files state
Copyright 2015-2033 , holger krekel and pytest-dev team.

That cannot be correct, because nobody did anything copyright-worthy
for this file in 2033.

See also https://stackoverflow.com/questions/2390230/do-copyright-dates-need-to-be-updated

Additionally, this change makes the package build reproducible.
See https://reproducible-builds.org/ for why this is good.

When building today's python-pytest-doc openSUSE package
in the year 2033, the documentation .html files state
Copyright 2015-2033 , holger krekel and pytest-dev team.

That cannot be correct, because nobody did anything copyright-worthy
for this file in 2033.

See also https://stackoverflow.com/questions/2390230/do-copyright-dates-need-to-be-updated

Additionally, this change makes the package build reproducible.
See https://reproducible-builds.org/ for why this is good.
@RonnyPfannschmidt
Copy link
Member

the point about being reproducible is important! , thanks

however i'd like to remove the need to update the end of the year range
anyone fluent with copyright up for providing a idea

if i recall correct the start year can be used solely

@bmwiedemann
Copy link
Contributor Author

As I understood it, copyright is automatic and the statement and year is just there to make proof easier in case you want to sue a violator for damages.

Expiry is usually 70 years after your death, so nothing you need to worry about.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 92.655% when pulling 2e344d4 on bmwiedemann:date into f761425 on pytest-dev:master.

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicoddemus i'd like to have your input as well

im going to approve since a repeatable build is the sensible/desirable thing

we may want to follow up with something to set the dates straight and to create a detail setup

@nicoddemus
Copy link
Member

I have no idea as well. I will setup a calendar reminder to update this yearly, seems simple enough and will avoid this headaches. 😁

@nicoddemus nicoddemus merged commit b7419bd into pytest-dev:master Jul 23, 2018
@RonnyPfannschmidt
Copy link
Member

@asottile i'm wondering - would this be an interesting item for a pre-commit hook that autofixes?

@asottile
Copy link
Member

@RonnyPfannschmidt I've had a similar idea since 2015 it seems 😆 pre-commit/pre-commit-hooks#94

In this case though, it probably makes more sense as a "copyright year update bot" which swings by once a year to spruce up the comments / years (since you probably wouldn't want a pre-commit hook to suddenly start failing: happy new year 🎉)

@nicoddemus
Copy link
Member

Automatize a once-a-year single-digit change (or 2 em 2 years) seems overkill to me TBH. 😁

I see value though if this is a bot that open PRs for a bunch of projects once a year. Then it definitely would be nice.

@asottile
Copy link
Member

oh yeah for sure, it would have to be something other people would use for it to be worth it 😆

@nicoddemus
Copy link
Member

A repository which can people submit their repositories as PRs, and configure which files need updating.

A heroku account with a cron job once a year downloads that repository, and goes over all repositories opening PRs.

Heh sounds like a fun project. 😁

@bmwiedemann
Copy link
Contributor Author

Except that you do not even have to update this yearly. Just every 70+ years.
So the bot task would be rather moot.

@RonnyPfannschmidt
Copy link
Member

this shouldnt be a bot - this should be a hook that when using year ranges updates those ranges for users on commits, so a new pull request would include the updates

@bmwiedemann bmwiedemann deleted the date branch August 3, 2018 10:52
@blueyed
Copy link
Contributor

blueyed commented Aug 25, 2018

@nicoddemus
Copy link
Member

Thanks for the research @blueyed. If nobody opposes, I'm OK with changing it.

@timhoffm timhoffm mentioned this pull request Jul 7, 2019
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants