Skip to content

upgrade python to 3.14 - #113

Closed
anpumn wants to merge 14 commits into
masterfrom
upgrade_python
Closed

anpumn wants to merge 14 commits into
masterfrom
upgrade_python

Conversation

@anpumn

@anpumn anpumn commented Sep 30, 2026

Copy link
Copy Markdown

This branch upgrades python to 3.14 and updates packages in pyproject.toml to higher versions compatible with python 3.14

@anpumn
anpumn requested review from renae-r and a balanced review from Copilot September 30, 2026 19:53
@khwilson

Copy link
Copy Markdown
Collaborator

I don't really maintain this package, but just a note that the requires-python >= 3.14 seems quite strict given that this is a pretty simple package!

@khwilson

Copy link
Copy Markdown
Collaborator

Also, a small suggestion: If you're already mucking around with poetry, you may as well migrate to uv and hatch :-)

@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.71%. Comparing base (1dde8b6) to head (9225915).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   88.77%   88.71%   -0.06%     
==========================================
  Files          14       14              
  Lines        1354     1347       -7     
==========================================
- Hits         1202     1195       -7     
  Misses        152      152              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread pyproject.toml
]
license = { text = "Mozilla Public License 2.0 (MPL 2.0)" }
requires-python = ">=3.12"
dependencies = [

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry to keep bothering. Some more minor questions:

  • Why are you pinning to pandas < 3? Are you actually using features of 3 specifically?
  • You've swapped all the version bounds to >= instead of ^=. Not sure that's intentional, but seems a bit broad (maybe not; depends on tool policy)
  • A potential improvement an LLM could throw together is creating a "raw" API wrapper that translates an OpenAPI spec from ipums and also generates standard pydantic types. Then you could wrap this with the current interface but give lower-level access to anyone who wants it. Honestly, probably not worth it, but a thought that might improve maintainability across the SDKs :-)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The Python minimum breaks the existing documentation build and leaves published compatibility guidance outdated.

2 open findings
What changed in this PR

Migrates packaging and CI from Poetry to uv/Hatchling while adding Python 3.14 support.

Changes:

  • Adopts PEP 621 metadata and dependency groups.
  • Tests Python 3.12–3.14 using uv.
  • Normalizes module formatting.
File Description
pyproject.toml Migrates packaging and dependencies.
.github/​workflows/​main.yml Uses uv across supported Python versions.
.github/​workflows/​coverage.yml Generates coverage on Python 3.14.
src/​ipumspy/​utilities.py Adds standard module spacing.
src/​ipumspy/​readers.py Adds standard module spacing.
src/​ipumspy/​fileutils.py Adds standard module spacing.
src/​ipumspy/​ddi.py Adds standard module spacing.
src/​ipumspy/​cli.py Adds standard module spacing.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pyproject.toml
{ name = "Renae Rodgers", email = "rodge103@umn.edu" }
]
license = { text = "Mozilla Public License 2.0 (MPL 2.0)" }
requires-python = ">=3.12"
Comment thread pyproject.toml
[project]
name = "ipumspy"
version = "0.8.2"
version = "1.0.0"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We are keeping this library below v1.0 for now. Please make this release version 0.9.0.

@anpumn

anpumn commented Oct 14, 2026

Copy link
Copy Markdown
Author

Closing this PR request due to some changes that may be beyond the scope of the data team. I think it is best if Renea or anybody managing the repo can update the python to 3.14 if not we can stay in the current version of ipumspy.

@anpumn anpumn closed this Oct 14, 2026
@khwilson

Copy link
Copy Markdown
Collaborator

I took a stab at #115 :-)

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.

4 participants