diff --git a/LICENSE.md b/LICENSE.md index 9b7f433b..7528633e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 1999–2023 +Copyright (c) 1999–2026 CODEOWNERS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/pyproject.toml b/pyproject.toml index 52c357f5..567a6ea4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,8 @@ requires-python = ">=3.10.0,<3.14.0" authors = [{name = "Author", email = "author@email"}] maintainers = [{name = "Maintainer", email = "maintainer@email"}] dynamic = ["version", "description"] -license = {file = "LICENSE.md"} +license = "MIT" # https://spdx.org/licenses/MIT.html +license-files = ["LICENSE.md"] readme = "README.md" dependencies = [] keywords = [] @@ -18,7 +19,6 @@ keywords = [] classifiers = [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", diff --git a/src/package/__init__.py b/src/package/__init__.py index b1e34341..8a1df109 100644 --- a/src/package/__init__.py +++ b/src/package/__init__.py @@ -3,6 +3,9 @@ This package is an empty cookiecutter package example. Enjoy! """ +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + # The version of this package. There's no comprehensive, official list of other # magic constants, so we stick with this one only for now. See also this conversation: # https://stackoverflow.com/questions/38344848/is-there-a-comprehensive-table-of-pythons-magic-constants diff --git a/src/package/__main__.py b/src/package/__main__.py index d1b2a6c7..a98ef5b7 100644 --- a/src/package/__main__.py +++ b/src/package/__main__.py @@ -1,5 +1,8 @@ """The main entry point into this package when run as a script.""" +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + # For more details, see also # https://docs.python.org/3/library/runpy.html # https://docs.python.org/3/reference/import.html#special-considerations-for-main diff --git a/src/package/something.py b/src/package/something.py index 17adf42c..25a8175a 100644 --- a/src/package/something.py +++ b/src/package/something.py @@ -1,5 +1,8 @@ """The Something module provides some things and functions.""" +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + class Something: """The Something class provides some things.""" diff --git a/tests/integration/test_something.py b/tests/integration/test_something.py index 14bb9f3c..acd464f6 100644 --- a/tests/integration/test_something.py +++ b/tests/integration/test_something.py @@ -1,5 +1,8 @@ """Test the Package itself using its external interface as in integration into a larger run context.""" +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + # https://bandit.readthedocs.io/en/latest/blacklists/blacklist_imports.html#b404-import-subprocess import subprocess # nosec B404 diff --git a/tests/performance/test_something.py b/tests/performance/test_something.py index c972db22..4811ce04 100644 --- a/tests/performance/test_something.py +++ b/tests/performance/test_something.py @@ -1,5 +1,8 @@ """Test the performance of various package parts, or the package as a whole.""" +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + import pytest from pytest_benchmark.fixture import BenchmarkFixture diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index a3bb8d10..0da10e4c 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -1,5 +1,8 @@ """Test configuration and other goodness.""" +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + import os import hypothesis diff --git a/tests/unit/test_something.py b/tests/unit/test_something.py index eb0d07b8..ea5fe7ab 100644 --- a/tests/unit/test_something.py +++ b/tests/unit/test_something.py @@ -1,5 +1,8 @@ """Test the Something module as a unit test. Add more tests here, as needed.""" +# Copyright (c) 2021-2026 CODEOWNERS +# This code is licensed under MIT license, see LICENSE.md for details. + import faker from hypothesis import given, strategies from pytest_cases import parametrize_with_cases