-
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
Feat: Added option to disable SSL verify #3676
Closed
maayanbar13
wants to merge
24
commits into
python-poetry:master
from
maayanbar13:option-to-disable-ssl-verify-develop
Closed
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ed1819c
feat: add trusted option to repository on develop branch, but require…
Celeborn2BeAlive 7c056a7
removed redundant double check of http scheme
maayanbar13 af7b1e7
Added trusted source tests and fixture to test_factory
maayanbar13 c3dccac
Added trusted source tests to pip_installer
maayanbar13 92dad18
Merge branch 'master' of https://github.com/python-poetry/poetry into…
maayanbar13 2304072
Implemented saving trusted state in cert configuration
maayanbar13 e0711ca
Fixed handling trusted as str and being overriden by default certific…
maayanbar13 f4c52a7
doc: Added docs about configurating trusted repositories in poetry co…
maayanbar13 9e40186
fix: Fixed bug where warnings are not reset to default when the reque…
maayanbar13 423236a
Apply suggestions from code review
maayanbar13 624c7ce
Fixed conflicts with latest upstream
maayanbar13 0270182
Fixed typo in get_truested
maayanbar13 514a531
Merge branch 'option-to-disable-ssl-verify-develop' of https://github…
maayanbar13 1be75fa
Fixed merge conflicts with latest changes
maayanbar13 20b31e6
Fixed lint issues
maayanbar13 28f5087
Fixed merge conflicts
maayanbar13 b90c3db
Fixed fstring formatting according to pyupgrade
maayanbar13 54656d3
Merged latest changes
maayanbar13 be3e319
Added trusted host verification for authenticator and legacy reposito…
maayanbar13 986fb2b
Updated tests according to authenticator changes
maayanbar13 270ceb1
Reverted small changes relative to dev
maayanbar13 61a65a7
Moved trusted option to seperate property then certs
maayanbar13 cbac250
Fixed test monkeypatch
maayanbar13 8b84ca6
Fixed acciderntaly deleted files in conflict merge and moved the trus…
maayanbar13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
My Package | ||
========== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Sébastien Eustace <[email protected]>" | ||
] | ||
license = "MIT" | ||
|
||
readme = "README.rst" | ||
|
||
homepage = "https://python-poetry.org" | ||
repository = "https://github.com/python-poetry/poetry" | ||
documentation = "https://python-poetry.org/docs" | ||
|
||
keywords = ["packaging", "dependency", "poetry"] | ||
|
||
classifiers = [ | ||
"Topic :: Software Development :: Build Tools", | ||
"Topic :: Software Development :: Libraries :: Python Modules" | ||
] | ||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.6" | ||
cleo = "^0.6" | ||
pendulum = { git = "https://github.com/sdispater/pendulum.git", branch = "2.0" } | ||
requests = { version = "^2.18", optional = true, extras=[ "security" ] } | ||
pathlib2 = { version = "^2.2", python = "~2.7" } | ||
|
||
orator = { version = "^0.9", optional = true } | ||
|
||
# File dependency | ||
demo = { path = "../distributions/demo-0.1.0-py2.py3-none-any.whl" } | ||
|
||
# Dir dependency with setup.py | ||
my-package = { path = "../project_with_setup/" } | ||
|
||
# Dir dependency with pyproject.toml | ||
simple-project = { path = "../simple_project/" } | ||
|
||
|
||
[tool.poetry.extras] | ||
db = [ "orator" ] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "~3.4" | ||
|
||
|
||
[tool.poetry.scripts] | ||
my-script = "my_package:main" | ||
|
||
|
||
[tool.poetry.plugins."blogtool.parsers"] | ||
".rst" = "some_module::SomeClass" | ||
|
||
|
||
[[tool.poetry.source]] | ||
name = "foo" | ||
url = "https://foo.bar/simple/" | ||
default = true | ||
trusted = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there seems to be a typo here as well: get_trusted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! However it seems more must be done as part of this change:
RuntimeError: The Poetry configuration is invalid: E - [source.0] Additional properties are not allowed ('trusted' was unexpected)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected, as written in the original post, in order for tests to pass you must first complete the mentioned PR in
poetry-core
as it contains the required changes to the poetry configuration schema.