Skip to content

Release 0.12.11#151

Merged
khoroshevskyi merged 7 commits intomasterfrom
modernize3
Mar 25, 2026
Merged

Release 0.12.11#151
khoroshevskyi merged 7 commits intomasterfrom
modernize3

Conversation

@khoroshevskyi
Copy link
Member

@khoroshevskyi khoroshevskyi commented Mar 25, 2026

modernizing code phase 1-6

@khoroshevskyi khoroshevskyi changed the title Modernize3 Modernize6 Mar 25, 2026
@khoroshevskyi khoroshevskyi changed the title Modernize6 Modernize full Mar 25, 2026
@khoroshevskyi khoroshevskyi changed the base branch from dev to master March 25, 2026 15:39
@khoroshevskyi khoroshevskyi changed the title Modernize full Release 0.12.11 Mar 25, 2026
This was referenced Mar 25, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the project’s packaging and CI configuration for the 0.12.11 release, moving from setup.py/requirements files to a PEP 621 pyproject.toml build and updating code annotations/docs across the package.

Changes:

  • Migrates packaging metadata to pyproject.toml (hatchling) and removes setup.py, MANIFEST.in, and legacy requirements files.
  • Updates CI workflows to install via extras (.[test]), run pytest, and replace Black with Ruff checks/formatting.
  • Modernizes type hints and docstrings across core modules; updates CLIs to derive version via importlib.metadata.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
setup.py Removed legacy setuptools packaging entrypoint.
MANIFEST.in Removed legacy sdist include rules (previously included templates/data).
requirements/requirements-*.txt Removed legacy dependency lists in favor of pyproject.toml.
pyproject.toml Adds PEP 621 project metadata, dependencies, build backend, and tooling config.
geofetch/utils.py Typing/docstring modernization and return type annotations.
geofetch/geofetch.py Typing/docstring modernization; signature annotations and minor formatting.
geofetch/finder.py Typing/docstring modernization and clearer method contracts.
geofetch/const.py Adds module docstring and type annotations for constants.
geofetch/cli.py Switches CLI version source to importlib.metadata; help text tweaks.
geofetch/sraconvert.py Switches --version to importlib.metadata; typing/docstring cleanup.
geofetch/_version.py Removed static version constant module.
geofetch/init.py Removes __version__ export; adds typed __author__/__all__.
.github/workflows/run-pytest.yml Updates test matrix and installation to pip install ".[test]".
.github/workflows/python-publish.yml Switches publishing build step to python -m build.
.github/workflows/black.yml Replaces Black action with Ruff lint + format checks and expands triggers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@khoroshevskyi khoroshevskyi merged commit 58b983c into master Mar 25, 2026
6 checks passed
@khoroshevskyi khoroshevskyi deleted the modernize3 branch March 25, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants