From a7cf2cafbe9ba182f26ce01627a9b165db53bab6 Mon Sep 17 00:00:00 2001 From: Diego Go Date: Sun, 11 Oct 2026 09:30:51 +0200 Subject: [PATCH 1/2] docs: add the MIT license file pyproject.toml already declared MIT, but the repository had no license text for it to refer to. --- LICENSE | 21 +++++++++++++++++++++ README.md | 5 +++++ pyproject.toml | 1 + 3 files changed, 27 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6a0f031 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Diego Gomes + +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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index c74b5ed..6a9e68a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![CI](https://github.com/digomes87/Bees/actions/workflows/ci.yml/badge.svg)](https://github.com/digomes87/Bees/actions/workflows/ci.yml) [![Python](https://img.shields.io/badge/Python-3.11+-blue.svg)](https://www.python.org/downloads/) +[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![Dashboard](https://img.shields.io/badge/Dashboard-live-b8740a.svg)](https://digomes87.github.io/Bees/) A Python package and a browser dashboard for studying how climate relates to @@ -226,6 +227,10 @@ Data: [GBIF](https://www.gbif.org/) and [Open-Meteo](https://open-meteo.com/) (ERA5 reanalysis from Copernicus/ECMWF). Studies: UFPR, Dryad, Ecology Letters and PMC, as listed above. +## License + +MIT. See [LICENSE](LICENSE). + ## Author Diego Gomes — [@digomes87](https://github.com/digomes87). diff --git a/pyproject.toml b/pyproject.toml index 65aded8..44bd174 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,7 @@ description = "Climate impact assessment on bee migration patterns in South Amer readme = "README.md" requires-python = ">=3.11" license = { text = "MIT" } +license-files = ["LICENSE"] keywords = ["bees", "migration", "climate", "analysis", "machine-learning"] dependencies = [ "numpy>=1.26", From 44fc4133233e07389adf91fa9f3089bd788c72cc Mon Sep 17 00:00:00 2001 From: Diego Go Date: Sun, 11 Oct 2026 09:31:22 +0200 Subject: [PATCH 2/2] build: declare the license as an SPDX expression setuptools rejects license-files next to the legacy table form of the license field, which broke the package build. --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 44bd174..1935c88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=68"] +requires = ["setuptools>=77"] build-backend = "setuptools.build_meta" [project] @@ -9,7 +9,7 @@ authors = [{ name = "Diego Gomes", email = "diego@example.com" }] description = "Climate impact assessment on bee migration patterns in South America" readme = "README.md" requires-python = ">=3.11" -license = { text = "MIT" } +license = "MIT" license-files = ["LICENSE"] keywords = ["bees", "migration", "climate", "analysis", "machine-learning"] dependencies = [