Skip to content

Commit bfca1dd

Browse files
authored
feat: ✨ add CC0 license for data to template (#141)
# Description Closes #53 This PR needs an in-depth review. ## Checklist - [x] Formatted Markdown - [x] Ran `just run-all`
1 parent 0fbb5f2 commit bfca1dd

File tree

5 files changed

+161
-14
lines changed

5 files changed

+161
-14
lines changed

copier.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,8 @@ copyright_year:
8383
type: str
8484
default: "{{ copyright_year | default('%Y' | strftime) }}"
8585
when: false
86+
87+
cc0_license:
88+
type: bool
89+
default: true
90+
help: "Do you want to use the CC0 license for the data in this data package?"

index.qmd

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ configurations in place, including for developing the Data Package.
1212

1313
## Features
1414

15-
::: content-hidden
16-
<!-- TODO: Move this down once a license has been decided on. -->
17-
18-
- Licensed under the open data license TODO. This is added by default,
19-
but you can delete or modify it if it isn't what you want or can
20-
use.
21-
:::
22-
2315
- Use [uv](https://decisions.seedcase-project.org/why-uv/) to manage
2416
the Data Package.
2517
- Use [Polars](https://www.pola.rs/) for data manipulation.
@@ -33,8 +25,8 @@ configurations in place, including for developing the Data Package.
3325
- GitHub workflows for automatically adding Pull Requests and Issues
3426
to a project board.
3527
- Pull Request template for easy creation of new Pull Requests.
36-
- [VS Code](https://code.visualstudio.com/) settings commonly
37-
used by contributors working in VS Code.
28+
- [VS Code](https://code.visualstudio.com/) settings commonly used by
29+
contributors working in VS Code.
3830
- [EditorConfig](https://editorconfig.org/) for common cross-editor
3931
settings for contributors.
4032
- [`CITATION.cff`](https://citation-file-format.github.io/) file for
@@ -44,6 +36,12 @@ configurations in place, including for developing the Data Package.
4436
advantage of Python's packaging ecosystem.
4537
- [`pyproject.toml`](https://peps.python.org/pep-0518/) for tracking
4638
dependencies and project metadata.
39+
- Use [MIT
40+
License](https://decisions.seedcase-project.org/why-mit-license/)
41+
for the code used in the Data Package made from this template.
42+
- Optionally use the [CC0
43+
License](https://decisions.seedcase-project.org/why-cc0-data/) for
44+
the data in the Data Package made from this template.
4745

4846
## Want to contribute?
4947

justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ test:
4848
--data author_family_name="Last" \
4949
--data author_email="[email protected]" \
5050
--data review_team="@first-last/developers" \
51+
--data cc0_license="true" \
5152
--data github_board_number=22
5253
# Run checks in the generated test data package
5354
cd $test_dir
@@ -67,7 +68,7 @@ test:
6768
--trust
6869
# Check that copying onto an existing data package works
6970
echo "Using the template in an existing package command -----------"
70-
rm .cz.toml .copier-answers.yml LICENSE-MIT.md
71+
rm .cz.toml .copier-answers.yml LICENSE-MIT.md LICENSE.md
7172
git add .
7273
git commit -m "test: preparing to copy onto an existing package"
7374
uvx copier copy \
@@ -82,6 +83,7 @@ test:
8283
--data author_family_name="Last" \
8384
--data author_email="[email protected]" \
8485
--data review_team="@first-last/developers" \
86+
--data cc0_license="false" \
8587
--data github_board_number=22
8688

8789
# Clean up any leftover and temporary build files

template/pyproject.toml.jinja

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ maintainers = [
1212
# TODO: Add more maintainers as needed.
1313
]
1414
readme = "README.md"
15-
# TODO: Update with a license for the data.
16-
license = "MIT AND "
17-
license-files = ["LICENSE-MIT.md", ""]
15+
{% if cc0_license %}
16+
license = "MIT AND CC0-1.0"
17+
license-files = ["LICENSE-MIT.md", "LICENSE.md"]
18+
{% else %}
19+
license = "MIT"
20+
license-files = ["LICENSE-MIT.md"]
21+
{% endif %}
1822
requires-python = ">=3.12"
1923
{% if package_github_repo %}
2024
[project.urls]
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Creative Commons CC0 1.0 Universal
2+
3+
> NOTE: This license applies to the data contained in this data package,
4+
> not the code used, which is licensed under the MIT License.
5+
6+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
7+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
8+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION
9+
ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE
10+
USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND
11+
DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT
12+
OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
13+
14+
## Statement of Purpose
15+
16+
The laws of most jurisdictions throughout the world automatically confer
17+
exclusive Copyright and Related Rights (defined below) upon the creator
18+
and subsequent owner(s) (each and all, an "owner") of an original work
19+
of authorship and/or a database (each, a "Work").
20+
21+
Certain owners wish to permanently relinquish those rights to a Work for
22+
the purpose of contributing to a commons of creative, cultural and
23+
scientific works ("Commons") that the public can reliably and without
24+
fear of later claims of infringement build upon, modify, incorporate in
25+
other works, reuse and redistribute as freely as possible in any form
26+
whatsoever and for any purposes, including without limitation commercial
27+
purposes. These owners may contribute to the Commons to promote the
28+
ideal of a free culture and the further production of creative, cultural
29+
and scientific works, or to gain reputation or greater distribution for
30+
their Work in part through the use and efforts of others.
31+
32+
For these and/or other purposes and motivations, and without any
33+
expectation of additional consideration or compensation, the person
34+
associating CC0 with a Work (the "Affirmer"), to the extent that he or
35+
she is an owner of Copyright and Related Rights in the Work, voluntarily
36+
elects to apply CC0 to the Work and publicly distribute the Work under
37+
its terms, with knowledge of his or her Copyright and Related Rights in
38+
the Work and the meaning and intended legal effect of CC0 on those
39+
rights.
40+
41+
1. **Copyright and Related Rights.** A Work made available under CC0
42+
may be protected by copyright and related or neighboring rights
43+
("Copyright and Related Rights"). Copyright and Related Rights
44+
include, but are not limited to, the following:
45+
46+
i. the right to reproduce, adapt, distribute, perform, display,
47+
communicate, and translate a Work;
48+
49+
ii. moral rights retained by the original author(s) and/or
50+
performer(s);
51+
52+
iii. publicity and privacy rights pertaining to a person's image or
53+
likeness depicted in a Work;
54+
55+
iv. rights protecting against unfair competition in regards to a
56+
Work, subject to the limitations in paragraph 4(a), below;
57+
58+
v. rights protecting the extraction, dissemination, use and reuse
59+
of data in a Work;
60+
61+
vi. database rights (such as those arising under Directive 96/9/EC
62+
of the European Parliament and of the Council of 11 March 1996
63+
on the legal protection of databases, and under any national
64+
implementation thereof, including any amended or successor
65+
version of such directive); and
66+
67+
vii. other similar, equivalent or corresponding rights throughout
68+
the world based on applicable law or treaty, and any national
69+
implementations thereof.
70+
71+
2. **Waiver.** To the greatest extent permitted by, but not in
72+
contravention of, applicable law, Affirmer hereby overtly, fully,
73+
permanently, irrevocably and unconditionally waives, abandons, and
74+
surrenders all of Affirmer's Copyright and Related Rights and
75+
associated claims and causes of action, whether now known or unknown
76+
(including existing as well as future claims and causes of action),
77+
in the Work (i) in all territories worldwide, (ii) for the maximum
78+
duration provided by applicable law or treaty (including future time
79+
extensions), (iii) in any current or future medium and for any
80+
number of copies, and (iv) for any purpose whatsoever, including
81+
without limitation commercial, advertising or promotional purposes
82+
(the "Waiver"). Affirmer makes the Waiver for the benefit of each
83+
member of the public at large and to the detriment of Affirmer's
84+
heirs and successors, fully intending that such Waiver shall not be
85+
subject to revocation, rescission, cancellation, termination, or any
86+
other legal or equitable action to disrupt the quiet enjoyment of
87+
the Work by the public as contemplated by Affirmer's express
88+
Statement of Purpose.
89+
90+
3. **Public License Fallback.** Should any part of the Waiver for any
91+
reason be judged legally invalid or ineffective under applicable
92+
law, then the Waiver shall be preserved to the maximum extent
93+
permitted taking into account Affirmer's express Statement of
94+
Purpose. In addition, to the extent the Waiver is so judged Affirmer
95+
hereby grants to each affected person a royalty-free, non
96+
transferable, non sublicensable, non exclusive, irrevocable and
97+
unconditional license to exercise Affirmer's Copyright and Related
98+
Rights in the Work (i) in all territories worldwide, (ii) for the
99+
maximum duration provided by applicable law or treaty (including
100+
future time extensions), (iii) in any current or future medium and
101+
for any number of copies, and (iv) for any purpose whatsoever,
102+
including without limitation commercial, advertising or promotional
103+
purposes (the "License"). The License shall be deemed effective as
104+
of the date CC0 was applied by Affirmer to the Work. Should any part
105+
of the License for any reason be judged legally invalid or
106+
ineffective under applicable law, such partial invalidity or
107+
ineffectiveness shall not invalidate the remainder of the License,
108+
and in such case Affirmer hereby affirms that he or she will not (i)
109+
exercise any of his or her remaining Copyright and Related Rights in
110+
the Work or (ii) assert any associated claims and causes of action
111+
with respect to the Work, in either case contrary to Affirmer's
112+
express Statement of Purpose.
113+
114+
4. **Limitations and Disclaimers.**
115+
116+
a. No trademark or patent rights held by Affirmer are waived,
117+
abandoned, surrendered, licensed or otherwise affected by this
118+
document.
119+
120+
b. Affirmer offers the Work as-is and makes no representations or
121+
warranties of any kind concerning the Work, express, implied,
122+
statutory or otherwise, including without limitation warranties
123+
of title, merchantability, fitness for a particular purpose, non
124+
infringement, or the absence of latent or other defects,
125+
accuracy, or the present or absence of errors, whether or not
126+
discoverable, all to the greatest extent permissible under
127+
applicable law.
128+
129+
c. Affirmer disclaims responsibility for clearing rights of other
130+
persons that may apply to the Work or any use thereof, including
131+
without limitation any person's Copyright and Related Rights in
132+
the Work. Further, Affirmer disclaims responsibility for
133+
obtaining any necessary consents, permissions or other rights
134+
required for any use of the Work.
135+
136+
d. Affirmer understands and acknowledges that Creative Commons is
137+
not a party to this document and has no duty or obligation with
138+
respect to this CC0 or use of the Work.

0 commit comments

Comments
 (0)