Description

Jeff Mahoney created a pair of Python tools 13 years ago for generating patches from upstream commits, in a format that is useful for updating the SUSE kernel.

I helped him a little bit in the beginning because he was busy and I love Python. So I've kept my interest in Python in general and these tools in particular.

But Python has changed quite a bit in the 13 years in many ways, such as:

  • Python 2 to Python 3 changes (which are numerous), including:
  • The typing of functions and there parameters is now more common
  • Python installation has changed, and now doesn't easily support direct install of scripts
  • There are much better ''lint'' tools now, for checking proper syntax

This will require technical work as well as coordination with the community that uses these tools.

Goals

The goal is to update or work towards updating, as time allows, the patchtools repository, to address the issues mentioned.

This may include:

  • Ability to work with Python version up to 3.13
  • Changing how the scripts and code are laid out, using modern techniques, such as having a mostly-empty script that just calls a Python library function
  • Adding a ''project.toml'' to support modern installs
  • May have to target Python 3.6 so it'll work on older kernels
  • Adding some unit test (using PyUnit?)

Resources

Just me, for now. Others welcome.

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 25

Activity

  • about 16 hours ago: lee_duncan started this project.
  • 9 days ago: mkoutny liked this project.
  • 10 days ago: lee_duncan originated this project.

  • Comments

    • lee_duncan
      about 16 hours ago by lee_duncan | Reply

      I am making good progress. I have connected with several other engineers in the Labs that use patchtools. We have decided on Python 3.6 as the minimum version of Python to be supported.

      I will create a package for others to use.

    Similar Projects

    This project is one of its kind!