Rail services in south Leeds are to face three weeks of travel disruption.