Add version constraints to metadata