Skip to content

MIgrate : Build to UV#27

Merged
kshitijrajsharma merged 20 commits intoosgeonepal:masterfrom
NikolaiS1990:master
Feb 21, 2026
Merged

MIgrate : Build to UV#27
kshitijrajsharma merged 20 commits intoosgeonepal:masterfrom
NikolaiS1990:master

Conversation

@NikolaiS1990
Copy link
Copy Markdown
Contributor

@NikolaiS1990 NikolaiS1990 commented Feb 9, 2026

Note, I tried to make a draft to test my CI updates only but that did not work, and now I am stuck with this PR and can't change the title to one which matches what this pr actually does.

  1. Build System & Dependency Management Migrate to UV Package #8 From setup .py to hatchling build #15
  • Migrated to uv: Replaced standard pip and pdm workflows with uv for environment management, syncing, and building.
  • Updated pyproject.toml to use hatchling as the build backend.
  • Dependencies: Removed rigid version pinning in pyproject.toml untill the entire project has been revived
  • Added Dependency Groups: Defined dev and ui (Streamlit) groups for modular installations.
  1. CI/CD changes CI CD Setup for Automatic Release #5
  • build.yml: Now triggers on Pull Requests to master, ensuring the package builds correctly using uv build.
  • publish.yml: Dedicated workflow for PyPI releases using uv publish, triggered by published releases or manual dispatch, this also means we do not rely on twine anymore.
  • test_app.yml: Updated to use uv sync and uv run, including a fix for osmium-tool installation by adding apt-get update.
  • Removed test_tweet.yml: Deprecated the Twitter/X integration testing.
  • Action Updates: changed actions/checkout and other community actions to the latest versions (v6/v7).
  1. Documentation - Installation.md
  • Added notesfor Debian-based system dependencies.
  • Documented the new uv based workflow (clone -> sync -> pre-commit).
  • Added instructions for running the Streamlit UI via uv run.
  1. Linting
  • Pre-commit Integration: Enforced ruff (linting/formatting) and commitizen via pre-commit hooks to maintain high code quality.

…Changed pyproject.toml to use uv and hatchling instead of PDM. I made sure the install can run and I also updated the Install.md
…It-is-also-changed-to-trigger-on-PRs-being-sent.): I updated the build.yml
Updating-the-build.yml-to-use-uv-and-hatchling-instead-of-pip
…on-of-actions.-This-commit-also-adds-a-publish.yml-file-and-adds-"pytz"-to-the-pyproject.toml-and-updates-the-uv.lock-accordingly): seperating build and publishing into seperate yml files and update to newer actions and implement uv
All tests passed in the draft pr.

- This PR updates the build.yml and test_app.yml to use newer versions of the actions.
-it adds a publish.yml for publishing
- seperates bulding and publishing
- It implements uv for building and publishing
- deletes tweet_test.yml since we won't be using twitter anymore in this way.
….yml and let uv set up python in both test_app.yml and build.yml
@NikolaiS1990 NikolaiS1990 reopened this Feb 9, 2026
@NikolaiS1990 NikolaiS1990 marked this pull request as ready for review February 9, 2026 15:51
Comment thread .github/workflows/test_app.yml Outdated
Comment thread docs/Installation.md Outdated
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread docs/Installation.md Outdated
Comment thread docs/Installation.md
Comment thread .github/workflows/test_app.yml Outdated
Comment thread .github/workflows/build.yml
Comment thread requirements.txt Outdated
…ch too, the test_app.yml has been optimized according to the comments. requirments.txt has been deleted, the installation.md has been improved. Dynamic versioning has been reintroduced in pyproject.toml and version dump to version.py taken care of with tool.hatch.version. As a bonus, a small bug has been fixed in osmsg/changefiles.py so we one longer gets a warning

Taking care of comments in the PR review.
Comment thread osmsg/changefiles.py
Comment thread requirements.txt Outdated
Comment thread Dockerfile Outdated
@kshitijrajsharma kshitijrajsharma changed the title Testing CI changes Migreate : Build to UV Feb 20, 2026
@kshitijrajsharma kshitijrajsharma changed the title Migreate : Build to UV MIgrate : Build to UV Feb 20, 2026
Copy link
Copy Markdown
Collaborator

@kshitijrajsharma kshitijrajsharma left a comment

Choose a reason for hiding this comment

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

Bravoo , Looks Perfect to me ! Thanks for working on this !

@kshitijrajsharma kshitijrajsharma merged commit c7521a7 into osgeonepal:master Feb 21, 2026
3 checks passed
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