Skip to content

Switch to uv as package manager#451

Draft
kofrezo wants to merge 2 commits into
mainfrom
dk_switch_to_uv
Draft

Switch to uv as package manager#451
kofrezo wants to merge 2 commits into
mainfrom
dk_switch_to_uv

Conversation

@kofrezo

@kofrezo kofrezo commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

kofrezo added 2 commits June 18, 2026 15:12
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.
@kofrezo kofrezo self-assigned this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant