newrelic / newrelic-python-agent

New Relic Python Agent
https://docs.newrelic.com/docs/agents/python-agent
Apache License 2.0
176 stars 99 forks source link

Remove Python2.7 support #1215

Closed hmstepanek closed 2 days ago

hmstepanek commented 1 week ago

Overview

Remove Python2.7 support.

github-actions[bot] commented 2 days ago

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ MARKDOWN markdownlint 1 0 0 0.48s
✅ MARKDOWN markdown-link-check 1 0 1.12s
❌ PYTHON bandit 145 11 22.23s
✅ PYTHON black 483 220 0 33.17s
❌ PYTHON flake8 483 292 12.65s
✅ PYTHON isort 483 261 0 1.3s
❌ PYTHON pylint 483 887 108.68s
✅ YAML prettier 2 0 0 0.5s
✅ YAML v8r 2 0 4.27s
✅ YAML yamllint 2 0 0.57s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov-commenter commented 2 days ago

Codecov Report

Attention: Patch coverage is 75.82205% with 125 lines in your changes missing coverage. Please review.

Project coverage is 81.24%. Comparing base (a6830a9) to head (f006351).

Files with missing lines Patch % Lines
newrelic/core/application.py 23.07% 20 Missing :warning:
newrelic/api/transaction.py 58.97% 16 Missing :warning:
newrelic/config.py 51.85% 8 Missing and 5 partials :warning:
newrelic/core/agent.py 23.52% 12 Missing and 1 partial :warning:
newrelic/bootstrap/sitecustomize.py 0.00% 6 Missing :warning:
newrelic/network/addresses.py 0.00% 5 Missing :warning:
newrelic/core/profile_sessions.py 60.00% 4 Missing :warning:
newrelic/common/object_names.py 72.72% 3 Missing :warning:
newrelic/core/config.py 80.00% 2 Missing and 1 partial :warning:
newrelic/core/stats_engine.py 84.21% 3 Missing :warning:
... and 33 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1215 +/- ## ========================================== - Coverage 81.43% 81.24% -0.20% ========================================== Files 197 197 Lines 21872 21601 -271 Branches 3830 3776 -54 ========================================== - Hits 17811 17549 -262 + Misses 2924 2912 -12 - Partials 1137 1140 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.