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

Drop support for Python 2 & 3.5 #177

Merged
merged 11 commits into from Nov 6, 2021

Conversation

briantist
Copy link
Collaborator

SUMMARY

Remove explicit support for Python 2.7 and 3.5 (2.6 was already unsupported).

Resolves: #81

Not looking to explicitly break anything in those python versions, but we won't be testing against it or enforcing support in PRs. We may accept PRs that look to make something that stopped working, work again in an unsupported python version, if the change is not regressive or otherwise looks reasonable. It will be a case by case basis.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

N/A

ADDITIONAL INFORMATION

N/A

@briantist briantist added this to the v2.0.0 milestone Nov 4, 2021
@briantist briantist self-assigned this Nov 4, 2021
@briantist briantist temporarily deployed to docs-build November 4, 2021 20:15 Inactive
@briantist briantist changed the title Breaking/2.0.0/py vers Drop support for Python 2 & 3.5 Nov 4, 2021
@codecov
Copy link

codecov bot commented Nov 4, 2021

Codecov Report

Merging #177 (b6cb19c) into main (af71153) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
- Coverage   91.68%   91.66%   -0.03%     
==========================================
  Files          40       40              
  Lines        1587     1583       -4     
  Branches      123      121       -2     
==========================================
- Hits         1455     1451       -4     
  Misses        119      119              
  Partials       13       13              
Flag Coverage Δ
env_docker-default 91.66% <100.00%> (-0.03%) ⬇️
integration 75.80% <ø> (ø)
py2.6 36.14% <33.33%> (-0.05%) ⬇️
py2.7 54.70% <33.33%> (-28.79%) ⬇️
py3.10 90.90% <33.33%> (+0.10%) ⬆️
py3.5 54.57% <33.33%> (-29.17%) ⬇️
py3.6 83.82% <33.33%> (+0.08%) ⬆️
py3.7 83.82% <33.33%> (+0.08%) ⬆️
py3.8 90.96% <33.33%> (+0.10%) ⬆️
py3.9 90.96% <33.33%> (+0.10%) ⬆️
sanity 37.76% <ø> (ø)
target_ansible-doc 100.00% <ø> (ø)
target_auth_approle 89.47% <ø> (ø)
target_auth_cert 56.40% <ø> (ø)
target_auth_jwt 91.30% <ø> (ø)
target_auth_none 100.00% <ø> (ø)
target_auth_token 71.42% <ø> (ø)
target_connection_options 74.76% <ø> (ø)
target_controller 67.00% <0.00%> (ø)
target_import 37.76% <ø> (ø)
target_lookup_hashi_vault 81.33% <ø> (ø)
target_lookup_vault_read 90.00% <ø> (ø)
target_module_utils 90.12% <33.33%> (-0.28%) ⬇️
target_module_vault_read 92.10% <ø> (ø)
units 88.75% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...it/plugins/module_utils/test_hashi_vault_helper.py 100.00% <ø> (ø)
tests/unit/conftest.py 100.00% <100.00%> (ø)
...s/authentication/test_hashi_vault_authenticator.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af71153...b6cb19c. Read the comment docs.

@briantist briantist temporarily deployed to docs-build November 4, 2021 21:41 Inactive
@briantist briantist closed this Nov 5, 2021
@briantist briantist reopened this Nov 5, 2021
@briantist briantist temporarily deployed to docs-build November 5, 2021 00:20 Inactive
@briantist briantist temporarily deployed to docs-build November 5, 2021 01:07 Inactive
@felixfontein
Copy link
Contributor

recheck

@@ -29,7 +29,6 @@ def vault_token_via_env(vault_token):
yield


@pytest.mark.skipif(sys.version_info < (2, 7), reason="Python 2.7 or higher is required.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you somehow need the skip_python fixture here (and in other places)? Or how does that work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixfontein yes indeed! It's in an autouse fixture in tests/unit/conftest.py (which existed before this, I just never went back to take out this one thing). That fixture is updated in this PR to change the version.

@briantist briantist merged commit 80633a4 into ansible-collections:main Nov 6, 2021
briantist added a commit that referenced this pull request Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropping Python 2 & 3.5 Support
2 participants