conda / conda-build

Commands and tools for building conda packages
https://docs.conda.io/projects/conda-build/
Other
383 stars 423 forks source link

Add testpypi as repo for conda-skeleton #2906

Closed prisae closed 6 years ago

prisae commented 6 years ago

Feature request

It would be great to have the option to use testpypi in addition to 'cpan', 'cran', 'luarocks', 'pypi', 'rpm' when using conda-skeleton. This way one could test packages first on testpypi and see if building a conda package from it works before submitting a package actually to PyPi.

Output of conda info
~/> conda skeleton testpypi empymod
usage: conda-skeleton [-h] {cpan,cran,luarocks,pypi,rpm} ...
conda-skeleton: error: argument repo: invalid choice: 'testpypi' (choose from 'cpan', 'cran', 'luarocks', 'pypi', 'rpm')
msarahan commented 6 years ago

That's what the

--pypi-url PYPI_URL   URL to use for PyPI (default: https://pypi.io/pypi/).

CLI parameter (to conda skeleton pypi) is for.

prisae commented 6 years ago

Great, conda skeleton pypi --pypi-url https://test.pypi.io/pypi/ did the trick. Thanks for your answer and sorry for missing it in the docs.

msarahan commented 6 years ago

no problem. That's in the docs, and also in the -h output. Good luck - pay careful attention to the URLs that get generated in the recipe for you. The pypi-url argument doesn't see much use, and may have bugs.

github-actions[bot] commented 2 years ago

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!