Skip to content

Modernize Parliament#258

Open
blarghmatey wants to merge 5 commits intoduo-labs:mainfrom
mitodl:main
Open

Modernize Parliament#258
blarghmatey wants to merge 5 commits intoduo-labs:mainfrom
mitodl:main

Conversation

@blarghmatey
Copy link
Copy Markdown

This udpates the Parliament repository to support Python 3.10 through 3.14, as well as moving to use uv and hatch for build/publish, and replacing use of nose with pytest. This also updates the IAM policy JSON with the latest as of 2025-10-11

…pport

- Replace deprecated pkg_resources with importlib.resources.files()
- Update Python version support to 3.10-3.14 (drop 3.6-3.9)
- Update .travis.yml test matrix to Python 3.10-3.14
- Add python_requires constraint: >=3.10,<3.15
- Use proper context managers for resource file handling

This migration ensures compatibility with Python 3.13+ where pkg_resources
is no longer available. The importlib.resources API is the modern,
maintained replacement introduced in Python 3.9 and stable in 3.10+.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Nov 10, 2025

CLA assistant check
All committers have signed the CLA.

@iainelder
Copy link
Copy Markdown
Contributor

I'd like to be wrong, but I think this project has been abandoned. See the lack of attention in #247

It's great that you've put in the work to update the project for modern Python, but it might need a fork.

I haven't used Parliament for a long time but I remain subscribed to its PRs. The next time I need it, I'd like to know that it still works!

@blarghmatey
Copy link
Copy Markdown
Author

I agree that this project seems to have been abandoned, in which case I will continue to maintain my fork as I use this fairly heavily in https://github.com/mitodl/ol-infrastructure/. This is my good faith attempt to contribute back to the project, but in the meantime I am using my fork installed from git.

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.

3 participants