Switch to uv as package manager#451
Draft
kofrezo wants to merge 2 commits into
Draft
Conversation
Replace APIs removed across Django 5.0/5.1 and bump dependencies. - api/decorators: use datetime.timezone.utc instead of the django.utils.timezone.utc alias (removed in 5.0) - serverdb/models: convert Meta.index_together to Meta.indexes (removed in 5.1); merge the new index into ServerInetAttribute's existing GistIndex list - settings: drop USE_L10N (removed in 5.0; USE_TZ already True) - Pipfile: Django ~=5.2, django-compressor ~=4.6 (5.2 support), django-extensions <5.0.0 (5.2 support)
Replace the single setup.py/Pipfile project with a uv workspace split into
two members under packages/:
- adminapi: standalone client library and CLI (paramiko, netaddr)
- serveradmin: Django backend, depends on adminapi via the workspace
This resolves the long-standing confusion of shipping both packages under a
distribution named "adminapi". Each package now declares its own dependencies
(the Django stack lived only in the Pipfile before) and can be built/published
independently. Dependencies are locked in a single uv.lock.
Details:
- Version moves to __version__ strings; adminapi.VERSION tuple kept for the
templatetag. serveradmin gets its own version.
- hatchling auto-includes serveradmin's templates/static, replacing the
setup.py package_data block.
- Replace distutils.util.strtobool (removed in 3.12) in serverdb/models.py
and servershell/views.py with the existing adminapi.dataset.strtobool.
- Fix .env lookup in settings.py for the new package depth.
- Pass an explicit "serveradmin" label to the test runner so discovery works
from the repo root.
- Migrate CI, Docker, and Read the Docs from pipenv to uv.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.