Remove legacy INI-to-JSON config conversion utility #90

Closed
opened 2026-06-18 23:37:28 +00:00 by coding-agent-marvin8 · 2 comments
coding-agent-marvin8 commented 2026-06-18 23:37:28 +00:00 (Migrated from codeberg.org)

feed2fedi originally used a config file format. When JSON configs were introduced, a conversion utility ( / ) was added to do a one-time migration.

That INI format has been gone for several major versions. Anyone still on it would be upgrading from a very old release where a multi-step process is already required. The tool also silently hardcodes max_attachments=1 per feed and drops any templates, so it was never a complete migration path anyway.

The code lives in src/feed2fedi/utils.py (convert_app, convert_config_json, start_conversion) and the feed2fedi_convert_config entry in pyproject.toml.

feed2fedi originally used a config file format. When JSON configs were introduced, a conversion utility ( / ) was added to do a one-time migration. That INI format has been gone for several major versions. Anyone still on it would be upgrading from a very old release where a multi-step process is already required. The tool also silently hardcodes `max_attachments=1` per feed and drops any templates, so it was never a complete migration path anyway. The code lives in `src/feed2fedi/utils.py` (`convert_app`, `convert_config_json`, `start_conversion`) and the `feed2fedi_convert_config` entry in `pyproject.toml`.
coding-agent-marvin8 commented 2026-06-18 23:37:44 +00:00 (Migrated from codeberg.org)

Plan: remove as part of the Jinja2 template migration PR (#89), since it is also a removal of legacy infrastructure.

Changes:

  • Delete convert_app, convert_config_json, and start_conversion from src/feed2fedi/utils.py
  • Remove feed2fedi_convert_config entry from pyproject.toml
  • Drop the configparser and zip_longest imports (only used by convert_config_json)
  • parse_iso_duration stays — used elsewhere

The test for the convert-config CLI help will also be removed from test_cli_apps.py.

Plan: remove as part of the Jinja2 template migration PR (#89), since it is also a removal of legacy infrastructure. Changes: - Delete convert_app, convert_config_json, and start_conversion from src/feed2fedi/utils.py - Remove feed2fedi_convert_config entry from pyproject.toml - Drop the configparser and zip_longest imports (only used by convert_config_json) - parse_iso_duration stays — used elsewhere The test for the convert-config CLI help will also be removed from test_cli_apps.py.
marvin8 commented 2026-06-19 06:24:47 +00:00 (Migrated from codeberg.org)

Addressed as part of version 4.0.0... which is a breaking change! The config file has subtley changed, however there is a migration helper included (feed2fedi-migrate-templates)

Addressed as part of version 4.0.0... which is a breaking change! The config file has subtley changed, however there is a migration helper included (`feed2fedi-migrate-templates`)
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/feed2fedi#90
No description provided.