-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Python 3 #3029
Support Python 3 #3029
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3029 +/- ##
===========================================
+ Coverage 84.15% 95.13% +10.98%
===========================================
Files 673 19 -654
Lines 36595 5205 -31390
Branches 4336 197 -4139
===========================================
- Hits 30798 4952 -25846
+ Misses 4548 181 -4367
+ Partials 1249 72 -1177 |
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.
Nice!
cisco_aci/tox.ini
Outdated
-e../datadog_checks_base[deps] | ||
-rrequirements-dev.txt | ||
unit: -e../datadog_checks_base[deps] | ||
unit: -rrequirements-dev.txt |
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.
We need these no matter what so let's remove the specifiers
cisco_aci/tox.ini
Outdated
commands = | ||
pip install -r requirements.in | ||
pytest -v | ||
unit: pip install -r requirements.in |
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 too
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.
Looks good to me, left a couple minor nits. Also 馃挏 the test refactors, nice job.
import aci_metrics | ||
from six import iteritems | ||
|
||
from . import aci_metrics | ||
from . import helpers | ||
from . import exceptions |
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.
Nit: could these be imported from the same line?
import aci_metrics | ||
from six import iteritems | ||
|
||
from . import aci_metrics | ||
from . import helpers |
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.
Could these be one line too?
cisco_aci/tests/conftest.py
Outdated
'DataDog', | ||
], | ||
"tags": ["project:cisco_aci"], | ||
} | ||
|
||
|
||
@pytest.fixture | ||
def aggregator(): |
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.
We can remove this too as its a global fixture now.
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.
Looks good to me once CI passes, thanks!
What does this PR do?
We need to support python 3 in all things. This check was a rough one and I definitely need someone to look it over pretty thoroughly to ensure I did everything right.
Motivation
馃悕 3锔忊儯 馃殏
Review checklist
no-changelog
label attachedAdditional Notes
Anything else we should know when reviewing?