python-poetry / python-poetry/poetry
Is it possible to remap source URLs in the lock file?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Issue
Where I work, developers use a .net address for our internal pypi with our packages. However, when it's time to use github actions, we externalise a different address ending in .com.
The problem occurs when developers create a lock file from the pyproject.toml. Naturally, the .net address will be added as a [package.source] in the lock file. Developers will be able to use the lock file to perform the installation, but the github action CI machine won't.
Is there a way to specify a remapping of a given source URL for a different user?
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 reviewing how Poetry records package.source URLs in the lock file and how installations consume those sources in GitHub Actions. Determine whether a user-specific remapping can be specified and define the expected behavior for both local development and CI; no implementation files or tests are identified in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100