Skip to content

issue-551: Restricting python version and removing pkg_resources#552

Merged
nttoole merged 6 commits into
masterfrom
issue-551
Apr 24, 2026
Merged

issue-551: Restricting python version and removing pkg_resources#552
nttoole merged 6 commits into
masterfrom
issue-551

Conversation

@EmilyPascua
Copy link
Copy Markdown
Contributor

@EmilyPascua EmilyPascua commented Mar 5, 2026

Pull request to address #551 ; this removes support for python 3.7 which has already reached eol. Restricting python version to >= 3.10 < 3.11.

Fixes #551

@EmilyPascua EmilyPascua requested a review from nttoole March 5, 2026 18:14
@EmilyPascua EmilyPascua requested review from a team as code owners March 5, 2026 18:14
@nttoole
Copy link
Copy Markdown
Contributor

nttoole commented Mar 10, 2026

@EmilyPascua Overall looks good, tho I noticed a lot of the pretty alignment from pyproject.toml was removed? I tend to be pro-alignment so was wondering if it was violating some convention?

@EmilyPascua
Copy link
Copy Markdown
Contributor Author

@EmilyPascua Overall looks good, tho I noticed a lot of the pretty alignment from pyproject.toml was removed? I tend to be pro-alignment so was wondering if it was violating some convention?

@nttoole Thanks Nicko! The auto formatter on my IDE updated it, but I can revert it back. Will push a change for this.

@EmilyPascua
Copy link
Copy Markdown
Contributor Author

EmilyPascua commented Mar 26, 2026

Tests failing due to still expecting other python versions; though sphinx is failing due to using pkg_resources.

  • Need sphinx version update for docs.
  • Deprecate testing python versions > 3.10.

Comment thread .github/workflows/full_build.yaml Outdated
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.10"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should 3.11 be included at this point, or no?

Comment thread ait/core/cmd.py Outdated

def getDefaultSchema(): # noqa
return pkg_resources.resource_filename("ait.core", "data/cmd_schema.json")
return files("ait.core").joinpath("data/cmd_schema.json")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do these need a str() call to ensure return type is maintained?

Comment thread .python-version
Comment thread tox.ini
@EmilyPascua
Copy link
Copy Markdown
Contributor Author

Removed code checks for Py 3.10>. Investigating why 3.11 is failing.

@EmilyPascua
Copy link
Copy Markdown
Contributor Author

EmilyPascua commented Apr 23, 2026

@nttoole Checks are successful! I had to remove the basepython version because tox.ini lint and docs were automatically setting them to default to py 3.10. Now, it will use the python version as defined in the matrix in full_build.yaml.

@EmilyPascua EmilyPascua requested a review from nttoole April 23, 2026 14:52
Copy link
Copy Markdown
Contributor

@nttoole nttoole left a comment

Choose a reason for hiding this comment

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

lgtm

@nttoole nttoole merged commit 4e010fc into master Apr 24, 2026
2 checks passed
@nttoole nttoole deleted the issue-551 branch April 24, 2026 19:31
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.

Pin to Setuptools<81

2 participants