Skip to content

Python 3.14 support, Drop Python 2 support, cleanup#225

Merged
wardi merged 10 commits intomasterfrom
python-3.14-support
Feb 19, 2026
Merged

Python 3.14 support, Drop Python 2 support, cleanup#225
wardi merged 10 commits intomasterfrom
python-3.14-support

Conversation

@amercader
Copy link
Member

@amercader amercader commented Feb 19, 2026

A bit of cleanup, prompted by this failure on Python 3.14:

ckanapi
Traceback (most recent call last):
  File "/home/adria/.pyenv/versions/ckan-py314/bin/ckanapi", line 3, in <module>
    from ckanapi.cli.main import main
  File "/home/adria/.pyenv/versions/3.14.3/envs/ckan-py314/lib/python3.14/site-packages/ckanapi/cli/main.py", line 90, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Summary:

  • Added support for Python 3.14
  • Dropped support for Python 2 and Paster (!)
  • Refactored tests to not use dropped modules in modern Python
  • Migrated from setup.py to pyproject.toml
  • Add workflow to publish to PyPI (all set up in PyPI and the repo)

Note: the versions on setup.py (4.8) and PyPI (4.9) were out of sync, I've updated the one the source

@wardi wardi self-assigned this Feb 19, 2026
@wardi wardi merged commit c18c623 into master Feb 19, 2026
12 checks passed
@wardi
Copy link
Contributor

wardi commented Feb 19, 2026

Thanks, I forgot to push the commit that updated the version number.

This is great, now that we have the workflow can anyone with permission on the repo publish to pypi?

@amercader
Copy link
Member Author

can anyone with permission on the repo publish to pypi?

Yes, that's my understanding. The publishing will be triggered when pushing a tag. We can specify specific users or teams that need to approve the workflow before publishing in the "pypi" environment (https://github.com/ckan/ckanapi/settings/environments/12254609770/edit)

@wardi
Copy link
Contributor

wardi commented Feb 19, 2026

@amercader as a test would you like to push a release for these changes?

@amercader
Copy link
Member Author

Would that be a 5.0 version? or a 4.10? also where's the changelog 🙂 ?

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