Python 3 dependency list support
The openstack/
The project needs to be updated to support having different lists of requirements for Python 2 and Python 3.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Julien Danjou
- Direction:
- Needs approval
- Assignee:
- Julien Danjou
- Definition:
- Drafting
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Julien Danjou
- Completed by
- Julien Danjou
Related branches
Related bugs
Sprints
Whiteboard
There's mainly 2 ways of doing that:
1. Maintain two requirements.txt, one of Python 2 and one for Python 3, updating them at will.
Pros:
- We can update only one side and limit versions of dependencies when needed
- Do not have to change anything on tox nor setup.py for existing projects
Cons:
- Redundancy
2. Maintain 3 requirements.txt, one common, and one specific for each version of Python (as of today, it seems the Python 3 specific would be empty btw).
Pros:
- No redundancy, clean
Cons:
- Might want to do more complicated stuff to not break Python 2 only projects that expects only one requirements.txt file
In both case the final goal of the game will be to have only one file, obviously. :)
-- jd 15/11/2013