Skip to content

Conversation

@ParticularlyPythonicBS
Copy link
Member

@ParticularlyPythonicBS ParticularlyPythonicBS commented Dec 1, 2025

Summary by CodeRabbit

  • Chores
    • Project license changed from GNU GPLv2 to MIT (copyright 2015–2025); legacy GPL license file removed and new LICENSE added; packaging metadata updated to reflect MIT.
    • .gitignore adjusted to track the new license filename.
  • Documentation
    • Removed or simplified legacy file header/license comments and minor docstring wording clarifications across several modules.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 1, 2025

Walkthrough

This PR migrates the project's license from GPLv2 to MIT. It removes GPLv2 license headers from multiple source files, replaces LICENSE.txt with a new LICENSE containing the MIT text, updates .gitignore to ignore LICENSE, and updates pyproject.toml to reference the MIT license.

Changes

Cohort / File(s) Summary
License Configuration
​.gitignore, LICENSE, LICENSE.txt, pyproject.toml
Changed .gitignore pattern from LICENSE.txtLICENSE; added new LICENSE (MIT, 2015–2025 TemoaProject Team); removed LICENSE.txt (GPLv2); updated pyproject.toml license field to "MIT" (replacing { file = "LICENSE.txt" }).
Core Module Headers
temoa/core/modes.py
Removed GPLv2 license/header block; code unchanged.
Method of Morris Extension Headers
temoa/extensions/method_of_morris/__init__.py, temoa/extensions/method_of_morris/morris_evaluate.py
Removed GPLv2 header/docstrings; functionality unchanged.
Modeling to Generate Alternatives Extension Headers
temoa/extensions/modeling_to_generate_alternatives/__init__.py, temoa/extensions/modeling_to_generate_alternatives/hull.py, temoa/extensions/modeling_to_generate_alternatives/manager_factory.py, temoa/extensions/modeling_to_generate_alternatives/mga_constants.py, temoa/extensions/modeling_to_generate_alternatives/vector_manager.py
Removed GPLv2 header blocks and metadata; module docstrings/code retained.
Myopic Extension Headers
temoa/extensions/myopic/__init__.py, temoa/extensions/myopic/myopic_index.py, temoa/extensions/myopic/myopic_progress_mapper.py
Removed GPLv2 headers; minor wording edits in myopic_index.py docstring; no functional changes.
Single Vector MGA Extension Headers
temoa/extensions/single_vector_mga/__init__.py, temoa/extensions/single_vector_mga/output_summary.py, temoa/extensions/single_vector_mga/sv_mga_sequencer.py
Removed GPLv2 header blocks; code unchanged.
Stochastics Extension Headers
temoa/extensions/stochastics/generate_scenario_tree-nonhomogenous.py, temoa/extensions/stochastics/generate_scenario_tree.py, temoa/extensions/stochastics/temoa_stochastic.py
Removed GPLv2 headers; shebangs in scenario tree scripts changed from pyomo_pythonpython; no logic changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

  • Verify the license file swap (LICENSE.txt removed, LICENSE added) and .gitignore pattern.
  • Confirm pyproject.toml license field update is correct.
  • Spot-check several files where headers were removed to ensure no accidental code deletion.

Possibly related issues

Suggested labels

Maintenance

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: transitioning the project license from GPL to MIT and removing GPL license headers throughout the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch maintainance/license_transfer_MIT

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b30e88d and 4ebd656.

📒 Files selected for processing (1)
  • pyproject.toml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: setup and test (macos-latest, 3.13)
  • GitHub Check: setup and test (macos-latest, 3.12)
  • GitHub Check: setup and test (windows-latest, 3.13)
  • GitHub Check: setup and test (windows-latest, 3.12)
🔇 Additional comments (1)
pyproject.toml (1)

7-7: License declaration correctly updated to MIT SPDX identifier.

The change to license = "MIT" follows PEP 621 standards and is properly supported by the repository configuration: LICENSE file exists at the root with MIT text, LICENSE.txt has been removed, and no broken references remain. The .gitignore correctly allows LICENSE to be tracked (!LICENSE in allowlist).


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ParticularlyPythonicBS ParticularlyPythonicBS added the Maintenance Code quality fixes and deprecation management label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LICENSE Maintenance Code quality fixes and deprecation management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants