Backport pull request #510 for 2.3.x
Backport pull request #510 for 2.3.x

conda-forge/conda-smithy,shadowwalkersb/conda-smithy,conda-forge/conda-smithy,shadowwalkersb/conda-smithy,ocefpaf/conda-smithy,ocefpaf/conda-smithy