Skip to content
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

Python poetry#4016 #4445

Closed
wants to merge 109 commits into from
Closed

Python poetry#4016 #4445

wants to merge 109 commits into from

Conversation

dabla
Copy link

@dabla dabla commented Aug 27, 2021

Pull Request Check List

Resolves: #4016

I'm experiencing the same issue on poetry 1.1.8 but I have created this patch to solve this issue. The problem is that by default, the requests library doesn't retry when a connection fails, and CacheControlAdapter also doesn't pass any retry parameters.

In our case this issue only arises on Windows, not on Linux, but as most developers work on Windows machines, we needed to fix this issue. We didn't experience this issue with poetry 1.0.10 though.

sdispater and others added 30 commits October 2, 2020 01:23
…-of-missing-extras

Fix resolution of packages with missing required extras
Fixes python-poetry#3026

If the context wrapped by the temporary_directory() context manager
raised ImportError (for example because distutils.util cannot be
imported, python-poetry#721 python-poetry#1837), it would previously keep going, causing a
RuntimeError from contextlib:

    RuntimeError: generator didn't stop after throw()

Co-authored-by: Remi Rampin <[email protected]>
This change ensures that we create closer to reality scenarios when
testing init command.

Relates-to: python-poetry#3073
This change ensures that we resolve dependencies to correctly propagate
markers when using `lock --no-update`.

Resolves: python-poetry#3048
This change ensures that package inspection will handle rich core
metadata available for poetry managed projects. This will allow, nested
local path dependencies to use "develop" mode packages.

Resolves: python-poetry#3098
This change, moves common functionality from exporter into the locker
to allow for sharing of logic that can generate `DependencyPackage`
instances given a a list of requirements using the lock data.
This change ensures that markers are propagated from top level
dependencies to the deepest level by walking top to bottom instead of
iterating over all available packages.

In addition, we also compress any dependencies with the same name and
constraint to provide a more concise representation.

Resolves: python-poetry#3112 #3160
Previously, when determining nested dependencies, the check for
activated extras/features of top level dependencies were done after the
nested dependencies were processed. This lead to exports containing
in active extras. This change resolves this by pre-selecting top level
packages prior to identifying nested dependencies.
sdispater and others added 26 commits June 25, 2021 17:41
Add PyPI registry correctly to pool depending on other sources (python-poetry#3406)

In the event where we defined sources that were set as
secondary = True, we would end up with PyPI being after this source
when it should have acted as default in that case.

The main issue stems from the fact that it's not because you have
sources configured that PyPI should not be a default. Instead, PyPI
should be default if there are no sources with secondary = False and
not default if there are sources with secondary = True.
Co-authored-by: Sébastien Eustace <[email protected]>
Co-authored-by: Sébastien Eustace <[email protected]>
Co-authored-by: Sébastien Eustace <[email protected]>
Co-authored-by: Sébastien Eustace <[email protected]>
Co-authored-by: Sébastien Eustace <[email protected]>
…get-poetry

add deprecation warning for `get-poetry.py` to docs
…nv-detection-1.1

[1.1] Fix system environment detection
fix: create path dependencies relative to package rather than lockfile (python-poetry#4245)
…tive-paths-dependencies-locking

[1.1] fix: create path dependencies relative to package rather than lockfile
…er-environment-for-python-3-10

[1.1] Fixed python_version for Python >= 3.10
…em-env-detection

[1.1] Fix system env detection
…ive-hash-generation

[1.1] Fix archive hash generation
…matically closed once we're done in the legacy repository
…n't pass any retry options, doing so fixes the [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted')) error on Windows
@dabla
Copy link
Author

dabla commented Aug 27, 2021

Sorry, this needs to be merged to branch 1.1, not master

@dabla dabla closed this Aug 27, 2021
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Further SSL problems with Poetry and a private Gitlab package registry