Yeah, one of the couple has to live there for 30(residency) days + 10(banns) days.
"All marriages must be performed by a French civil authority before any religious ceremony takes place. The mayor can authorize the deputy mayor or a city councilor to perform the ceremony in the town in which one of the parties to be married has resided for at least 40 days preceding the marriage. These requirements can not be waived. "
[broken link removed]