Issue #264: Restricting python version and removing pkg_resources#265
Issue #264: Restricting python version and removing pkg_resources#265EmilyPascua wants to merge 7 commits intomasterfrom
Conversation
|
|
@nttoole This wasn't introduced in this PR. But SonarQube picked it up so I'm adding changes as requested. |
| bytes: [2, 3], | ||
| name: "Voltage_B", | ||
| desc: "Voltage B as a 14-bit DN. Conversion to engineering units is TBD." | ||
| desc: "Voltage B as a 14-bit DN. Conversion to |
There was a problem hiding this comment.
I assume a line-width rule violation caused the edit, but I think it would be better to preserve the JSON as it was
| bytes: [4, 5], | ||
| name: "Voltage_C", | ||
| desc: "Voltage C as a 14-bit DN. Conversion to engineering units is TBD." | ||
| desc: "Voltage C as a 14-bit DN. Conversion to |
There was a problem hiding this comment.
Done. - I added a noqa so the flake linter just ignore this.
| @@ -0,0 +1 @@ | |||
| 3.11 | |||
There was a problem hiding this comment.
Just checking if this should include '3.10' as well?
| - none | ||
| python: | ||
| version: "3.8" | ||
| version: "3.11" |
There was a problem hiding this comment.
This looks fine here, tho I noted that AIT-Core's version of this file still has '3.8'
There was a problem hiding this comment.
Edit: Ah! Need to update AIT-DSN and AIT-Core to be consistent.
| @@ -1,26 +1,26 @@ | |||
| [tox] | |||
| allowlist_externals = poetry | |||
There was a problem hiding this comment.
Similar to readthedocs comment, the contents of this tox.ini seems a bit different from AIT-Core's (Core lists py 310 and 311, mix of white/allow list_externals, etc)
Not sure if needed since this is a plugin, but wanted to check. Thanks
There was a problem hiding this comment.
@nttoole The tox tests just runs differently for AIT-GUI versus what we have for AIT-Core. In AIT-Core, we have Github actions configured (hence why those are supplied in the environment) and the tox tests actually run dynamically for multiple python versions. For AIT-GUI we have it set to the BasePython version of 3.11 (prior was 3.10) - Let me know if we should remain with Python 3.10.
Maybe an item for the future to make these tests more dynamic so it's running both 11 and 10.
nttoole
left a comment
There was a problem hiding this comment.
@EmilyPascua I am also seeing what looks like a couple of security-related fixes (re paths as args).
Could these please be split out to a separate PR - since we may need to specifically reference them in future security documentation? Thx
|
|
Ready for review @nttoole ! |
|
|
||
| [tool.poetry.dependencies] | ||
| python = ">= 3.10 < 3.12" | ||
| ait-core = { path = "../AIT-Core", develop = true } |
| @@ -0,0 +1 @@ | |||
| 3.11 | |||
| bytes: [4, 5], | ||
| name: "Voltage_C", | ||
| desc: "Voltage C as a 14-bit DN. Conversion to engineering units is TBD." | ||
| desc: "Voltage C as a 14-bit DN. Conversion to |
There was a problem hiding this comment.
Done. - I added a noqa so the flake linter just ignore this.
| bytes: [2, 3], | ||
| name: "Voltage_B", | ||
| desc: "Voltage B as a 14-bit DN. Conversion to engineering units is TBD." | ||
| desc: "Voltage B as a 14-bit DN. Conversion to |
| name: "Voltage_B", | ||
| desc: "Voltage B as a 14-bit DN. Conversion to | ||
| engineering units is TBD." | ||
| desc: "Voltage B as a 14-bit DN. Conversion to engineering units is TBD." # noqa: B950 |
There was a problem hiding this comment.
Adding noqa: B950 so linter ignores.



Changes primarily to: