Skip to content

Commit

Permalink
gh-184: Change copyright range in documentation to be automated (#194)
Browse files Browse the repository at this point in the history
Rather than hardcoding the year, we can compute it as we go. I've also
removed the duplication of the `author` field.

I've also manually updated the year range in the licence file, I have an
action we could use to update that if we want
https://github.com/paddyroddy/.github/tree/main/actions/licence

Fixes #184

Reviewed-by: Saransh Chopra <[email protected]>

---------

Co-authored-by: Nicolas Tessore <[email protected]>
  • Loading branch information
paddyroddy and ntessore authored Sep 12, 2024
1 parent cf43032 commit e95f057
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ glass/_version.py
.*.swp
.DS_Store
__pycache__
docs/_build
_build
build
dist
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 The GLASS Developers
Copyright (c) 2022-2024 The GLASS Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

# -- Project information -----------------------------------------------------

import datetime
from importlib import metadata

project = 'GLASS'
copyright = '2022-2024 Nicolas Tessore'
author = 'Nicolas Tessore'
author = 'GLASS developers'
copyright = f'2022-{datetime.date.today().year} {author}'
version = metadata.version("glass")
release = version

Expand Down

0 comments on commit e95f057

Please sign in to comment.