openSUSE / openSUSE/python-rpm-macros

Python module names with a custom prefix

Open
#202 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
27
Forks
20
Avg merge
8h 52m
Merged PRs (30d)
2

Description

We are working on a project in which we are packaging Python modules outside of openSUSE & SLE, using Open Build Service. In some cases, we have found ourselves in need for packaging a different version of a package name which is already included in openSUSE and/or SLE. We would like to use python-rpm-macros but we are finding issues with this part:

BuildRequires: %{python_module foo >= version}

It would resolve to the following, per version of pythons:

BuildRequires: pythonX-foo >= version

We would like to be able to have a way to specify a custom prefix for these packages, so that the package names do not conflict with the openSUSE & SLE package names.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Lua implementation of the python-rpm-macros generator and trace how %{python_module foo >= version} becomes per-Python BuildRequires names. Define how a custom prefix should be specified, then verify that generated package names use it without conflicting with openSUSE or SLE names.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, python
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.