-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry does not handle trailing slashes in Git urls #7326
Comments
the trailing slash is again likely to cause damage here, as in #7327 |
copying this comment from the other issue - I don't expect to do anything with this myself; but if anyone does care to take a look at it they might as well have this
|
Unable to reproduce this issue with latest Poetry version. Closing for now. If issue still exists, please comment with additional information. See logs below for successful install. podman run --rm -i --entrypoint bash python:3.12 <<EOF
set -xe
python -m pip install --disable-pip-version-check -q poetry
install -d foobar
pushd foobar
cat > pyproject.toml <<TOML
[tool.poetry]
name = "api-server-apps"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"
packages = []
[tool.poetry.dependencies]
python = "^3.12"
opencensus = {git = "/~https://github.com/instabase/opencensus-python", rev = "ec72cd39b431ec28ebcf72861852bccaef00c961"}
opencensus-ext-prometheus = {git = "/~https://github.com/instabase/opencensus-python/", rev = "ec72cd39b431ec28ebcf72861852bccaef00c961", subdirectory = "contrib/opencensus-ext-prometheus"}
"pdfminer.six" = {git = "/~https://github.com/instabase/pdfminer.six.public", rev = "47baa0dda534f8389a67c9c984c23b52bf4614e0"}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
TOML
poetry install
EOF console.log
+ python -m pip install --disable-pip-version-check -q poetry
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ install -d foobar
+ pushd foobar
/foobar /
+ cat
+ poetry install
Creating virtualenv api-server-apps-lWDpn5M1-py3.12 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...
Package operations: 21 installs, 0 updates, 0 removals
- Installing pyasn1 (0.5.1)
- Installing cachetools (5.3.3)
- Installing certifi (2024.2.2)
- Installing charset-normalizer (3.3.2)
- Installing idna (3.6)
- Installing protobuf (3.20.3)
- Installing pyasn1-modules (0.3.0)
- Installing rsa (4.9)
- Installing urllib3 (2.2.1)
- Installing google-auth (2.29.0)
- Installing googleapis-common-protos (1.63.0)
- Installing pycparser (2.21)
- Installing requests (2.31.0)
- Installing cffi (1.16.0)
- Installing google-api-core (1.34.1)
- Installing opencensus-context (0.2.dev0)
- Installing cryptography (42.0.5)
- Installing opencensus (0.8.dev0 ec72cd3)
- Installing prometheus-client (0.20.0)
Installing /root/.cache/pypoetry/virtualenvs/api-server-apps-lWDpn5M1-py3.12/lib/python3.12/site-packages/opencensus/__init__.py over existing file
Installing /root/.cache/pypoetry/virtualenvs/api-server-apps-lWDpn5M1-py3.12/lib/python3.12/site-packages/opencensus/common/__init__.py over existing file
- Installing opencensus-ext-prometheus (0.3.dev0 ec72cd3)
- Installing pdfminer-six (20221210 47baa0d)
Installing /root/.cache/pypoetry/virtualenvs/api-server-apps-lWDpn5M1-py3.12/lib/python3.12/site-packages/opencensus/__init__.py over existing file
Writing lock file
Installing the current project: api-server-apps (0.1.0)
Warning: The current project could not be installed: [Errno 2] No such file or directory: '/foobar/README.md'
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
In a future version of Poetry this warning will become an error! |
the symptoms might have changed but
eg after probably wants re-opening, anyway something should track this |
fixes python-poetry#7326 (cherry picked from commit 7181557)
fixes python-poetry#7326 (cherry picked from commit 7181557)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
When installing multiple packages from git repositories, we see a few different failures modes when running
poetry install
. This seems like maybe some kind of race condition, because this doesn't reliably reproduce when the pyproject.toml only includes the git packages, so might have to do with how the installs are scheduled with this particular configuration of packages.poetry install
.Logs
[Errno 13] Permission denied: 'src'
. Can only be fixed bysudo rm -rf
ing the venv directory.Logs
This may be related to #7113, but we aren't installing any deps with
develop = true
, so I'm filing this separately.The text was updated successfully, but these errors were encountered: