python-poetry / python-poetry/poetry
publish: support url as argument to --repository option
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
A common scenario when using poetry under CI environments is to rely on environment variables to perform a publish operation. For example,
export POETRY_REPOSITORIES_TESTPYPI_URL=https://test.pypi.org/legacy/
poetry publish --build --repository testpypi --username foo --password bar
We should improve this experience by support valid url's as arguments to the --repository option so that the above can be achieved like so.
poetry publish --build --repository https://test.pypi.org/legacy/ --username foo --password bar
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the CLI implementation of the publish command and its --repository option, then trace how repository names are resolved. Verify the requested URL form with a publish invocation or focused test, while preserving the existing named-repository behavior; done means the URL example is accepted directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100