config: allow bool values for repo cert#5719
config: allow bool values for repo cert#5719neersighted merged 1 commit intopython-poetry:masterfrom
Conversation
|
Deploy preview for website ready! Built with commit f7d3625. |
neersighted
left a comment
There was a problem hiding this comment.
LGTM -- I especially like that PyPI is tamperproof the way you've added this, as well as the dataclass encapsulation of invariants/configuration.
Yeah. But couldn't think of a better way of grouping it. |
This change allows certificates.<repo>.cert configuration to accept boolean values in addition to certificate paths. This allows for repositories to skip TLS certificate validation for cases where self-signed certificats are used by package sources. In addition to the above, the certificate configuration handling has now been delegated to a dedicated dataclass. Co-authored-by: Celeborn2BeAlive <[email protected]> Co-authored-by: Maayan Bar <[email protected]>
|
Still have error with version 1.2.0b2 |
|
This doesn't resolve the problem, because false is added as a string in auth.toml It should be: I suppose this command is the culprit. It's probably casting the command line argument to a string since it would have always been a string prior to this commit.
|
|
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. |

boolean values in addition to certificate paths. This allows for repositories to skip TLS certificate validation for cases where self-signed certificats are used by package sources.
In addition to the above, the certificate configuration handling has now been delegated to a dedicated dataclass.
Closes: #3676
Resolves: #1556