WIP: Python 3 + UV Modernization (Archetypes migration pending)#138
Open
savagelysubtle wants to merge 9 commits into
Open
WIP: Python 3 + UV Modernization (Archetypes migration pending)#138savagelysubtle wants to merge 9 commits into
savagelysubtle wants to merge 9 commits into
Conversation
…ure buildout for Python 3 - Add six library for Python 2/3 compatibility - Update print statements to use print() function syntax - Configure buildout.cfg for Python 3 compatibility - Update P8_UPGRADE_GUIDE.md references - Add PYTHONPATH to instance environment - Add python-buildout section for Python 3
- Add pyproject.toml with Python 3.10+ support - Configure UV dependency groups (replacing deprecated dev-dependencies) - Add six library for Python 2/3 compatibility - Simplify setup.py to defer to pyproject.toml - Successfully sync 248+ packages with UV (except Pillow build issue) Note: Pillow build issue persists due to missing zlib headers in build environment. This demonstrates the pyproject.toml + UV approach works for modern Python 3 packaging.
- Add [tool.uv] section with override-dependencies - Override Pillow>=10.0.0 to use binary wheels instead of source build - Products.PortalTransforms pins old Pillow version requiring zlib headers - This fix allows UV sync to complete successfully on Windows
- Update README.md with UV quick start instructions - Add etc/zope.conf for Zope configuration - Add etc/wsgi.ini for WSGI server configuration - Add run_instance.py for launching SENAITE with UV Note: SENAITE still requires Archetypes->Dexterity migration for full Python 3 support
- Add Python 3 classifiers - Remove deprecated namespace_packages (handled by pyproject.toml) - Clean up imports order
- Document all completed work and current status - Detail the Archetypes blocker and migration path - Provide technical summary for contributors - Complete audit trail of Python 3 modernization effort
- Detailed technical assessment of Archetypes → Dexterity migration - Scope analysis: 219 files affected, 100+ content types - Implementation roadmap with phases and timelines - Risk assessment and mitigation strategies - Alternative approaches evaluation - Resource requirements and success criteria
- Improve markdown formatting for better readability - Add proper line breaks and table formatting - Final review of documentation completeness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds modern Python 3 packaging support using UV and begins the Python 3 migration journey for SENAITE LIMS.
What This PR Does
✅ Completed
pyproject.toml- Modern Python packaging with UV supportetc/zope.confandetc/wsgi.inifor UV-based setuprun_instance.py- Script to launch SENAITE with UVexcept X as e:)⚡ What's Working
⛔ Blocker: Archetypes → Dexterity Migration
The instance cannot start because
senaite.coredepends on Products.Archetypes, which is Python 2 only:This requires the content type migration outlined in
P8_UPGRADE_GUIDE.md.Files Changed
pyproject.tomlREADME.mdetc/zope.confetc/wsgi.inirun_instance.pyHelp Wanted
Related
src/senaite.core/P8_UPGRADE_GUIDE.mdfor full Python 3 migration roadmap