Skip to content

Python version updates#60

Merged
dopefishh merged 6 commits into
dopefishh:masterfrom
JoFrhwld:pyproject
Aug 18, 2025
Merged

Python version updates#60
dopefishh merged 6 commits into
dopefishh:masterfrom
JoFrhwld:pyproject

Conversation

@JoFrhwld

@JoFrhwld JoFrhwld commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

The latest supported version listed on pypi is 3.9, which is approaching end of life. Updated the supported versions was a but more complex, as distutils was removed from v3.12.

PR Explanation

I did:

  • I converted the metadata from setup.py and setup.cfg to pyproject.toml. This was all "by hand" to keep dependencies minimal, so no additional build tools are necessary beyond setuptools.
  • I updated the github action to test on 3.9 through 3.13, as well as the versions the checkout and python setup actions.
  • To maintain dynamic versioning, like there was with setup.py, I added a __version__ attribute to pympi/__init__.py. When the package is built, this value will be dynamically used.

I did not:

  • I did not bump the version, so it is still v1.70.2 as it is in the main branch.

Working locally:

To build the package:

python -m build

Testing still works as before with

pytest

@dopefishh dopefishh merged commit c7f389f into dopefishh:master Aug 18, 2025
5 checks passed
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.

2 participants