Skip to content

docs: deprecation notice + fix Read the Docs build#31

Merged
sametd merged 3 commits into
mainfrom
feature/deprecation-notice
Jun 8, 2026
Merged

docs: deprecation notice + fix Read the Docs build#31
sametd merged 3 commits into
mainfrom
feature/deprecation-notice

Conversation

@sametd

@sametd sametd commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

This repository is superseded by the re-engineered Aviso projects and will be archived soon. This PR adds prominent deprecation notices and repairs documentation publishing so the notice actually ships to readers.

New home for Aviso:

Source code Documentation
Aviso server https://github.com/ecmwf/aviso-server https://sites.ecmwf.int/docs/aviso-server/main/
Aviso client https://github.com/ecmwf/aviso-client https://sites.ecmwf.int/docs/aviso-client/main/

Changes

  • README: > [!WARNING] banner at the top pointing to the new repositories and docs.
  • Docs deprecation banner: a Sphinx layout.html override renders a "no longer maintained" admonition on every page, plus a .. warning:: on the landing page (index.rst).
  • Fix Read the Docs publishing:
    • Add the now-required .readthedocs.yaml (Read the Docs has mandated a config file since 2023; without it the build is silently skipped, which is why the published docs went stale).
    • Whitelist it past the .* rule in .gitignore (otherwise the dotfile is untracked).
    • conf.py: read the version from pyaviso/version.py by regex (as setup.py already does) instead of import pyaviso, whose __init__ pulls in the full runtime stack (etcd3, boto3, ...). That import required the whole package to be installed just to build the docs and made the RTD build fragile.

Validation

  • sphinx-build -b html docs/source completes cleanly (exit 0).
  • The deprecation banner renders on every page; the landing-page warning renders.
  • The version is resolved without importing the package (Aviso 1.0.1 documentation).
  • conf.py passes black, isort (black profile), and flake8 (max-line 120, ignore E203).

Notes

  • Targeting main (the repo's default branch; there is no develop branch on the remote).
  • A pre-existing Sphinx warning in reference/triggers.rst (a JSON block with # comments) is unrelated to this change and does not fail the default RTD build.
  • The Read the Docs project-side settings (webhook / version activation) may also need a check; if a build does not trigger after merge, that is configured on readthedocs.org rather than in the repo.

sametd added 3 commits June 8, 2026 22:37
This repository is superseded by the aviso-client and aviso-server
projects and will be archived. Add prominent deprecation notices and
repair documentation publishing so the notice actually ships:

- README: warning banner pointing to the new repositories and docs.
- docs: global deprecation banner on every page (Sphinx layout
  override) plus a warning on the landing page.
- Read the Docs: add the now-required .readthedocs.yaml (its absence
  silently skipped builds, leaving the published docs stale), and
  whitelist it past the .* gitignore rule.
- conf.py: read the version from pyaviso/version.py by regex instead of
  importing pyaviso, whose __init__ pulls in the heavy runtime stack
  (etcd3, boto3, ...) and made the docs build fragile.

Validated with a clean local sphinx-build (exit 0); banner renders on
every page; conf.py passes black/isort/flake8.
The deprecation notice needs a release to refresh the PyPI project
description, but the publish job gates on a green test matrix that was
already failing on main for reasons unrelated to the docs change:

- cloudevents 2.x removed the cloudevents.http module, breaking test
  collection (ModuleNotFoundError: No module named 'cloudevents.http').
  Pin cloudevents to <2; 1.x still provides cloudevents.http with the
  CloudEvent/to_structured/from_http symbols the code imports.
- Code QA failed because aviso-server/.../etcd_reporter.py was not
  black-formatted. Reformat it (whitespace only).

Bump the version 1.0.1 -> 1.0.2 and add a What's New entry so the
release that carries the deprecation notice is properly versioned.
GitHub has retired the macos-13 (Intel) hosted runners, so the macOS
matrix legs queue indefinitely and never complete. That blocks both the
PR checks and the release publish job (which gates on the test matrix).

This project is deprecated and being archived; Linux coverage is enough
to validate the maintenance release that carries the deprecation notice.
Drop macOS from both check.yaml and check-publish.yml. The macOS-guarded
steps (`if: runner.os == 'macOS'`) remain as harmless no-ops.
@sametd sametd merged commit b1b58aa into main Jun 8, 2026
6 checks passed
@sametd sametd deleted the feature/deprecation-notice branch June 8, 2026 21:19
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.

1 participant