FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Removed Support for Python2 by ashah-splunk · Pull Request #456 · splunk/splunk-sdk-python · GitHub

Repository navigation

Removed Support for Python2 - #456

Merged
ashah-splunk merged 70 commits into
developfrom
py3-code-migration
Mar 15, 2024
Merged

ashah-splunk merged 70 commits into
developfrom
py3-code-migration

Conversation

Copy link
Copy Markdown
Contributor
  • removed code specific for python version2
  • removed six.py dependency which bridged support for python versions 2 and 3
  • refactored code as per pylint suggestions
  • used python3 features to improve both efficiency and performance
  • removed future imports required to support py2 and py3 versions
  • updated test cases to use py3 code
  • updated CI test configuration to execute test cases in python 3.7 and 3.9 versions
  • updated code to remove code deprecation warnings

Copy link
Copy Markdown
Contributor

There are some test failures in latest and 8.1 runs, could we address them?

Comment thread CHANGELOG.md Resolved
Comment thread splunklib/__init__.py Resolved

jervin-splunk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

In addition to the places noted in the other comments, there are some lingering references to Python 2.7 and 2.6 which should likely be cleaned up as well in these files:

splunk-sdk-python/tests/README.md
splunk-sdk-python/scripts/test_specific.sh
splunk-sdk-python/README.md

Comment thread splunklib/binding.py Resolved
Comment thread splunklib/client.py Resolved
Comment thread splunklib/client.py Resolved
Comment thread splunklib/utils.py Resolved
Comment thread tests/testlib.py Resolved
Comment thread Makefile Resolved
Comment thread splunklib/searchcommands/decorators.py Resolved
Comment thread splunklib/searchcommands/internals.py Resolved
Comment thread tests/test_job.py Resolved
Comment thread splunklib/searchcommands/internals.py Resolved
Comment thread splunklib/binding.py Resolved
Comment thread splunklib/client.py Resolved
Comment thread splunklib/client.py Resolved
Comment thread splunklib/client.py Resolved
Comment thread splunklib/searchcommands/internals.py Resolved
ashah-splunk changed the title WIP :- Removed Support for Python2 Removed Support for Python2 Mar 14, 2024

jervin-splunk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Revisions look good.

ichaer commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

I'm approving anticipating that the two pending comments will be resolved. They are not about particularly concerning issues, but they are trivial to implement and shouldn't be postponed.

- line separators were mistakenly updated, hence reverting it back.
ashah-splunk merged commit f37f17e into develop Mar 15, 2024
Ickerday deleted the py3-code-migration branch August 18, 2025 09:08
This file contains hidden or 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
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.

7 participants


Back | FazBrowse Home | New Git URL