Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and publish RPM packages (for EL8/EPEL) #34

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

NicolasT
Copy link
Owner

@NicolasT NicolasT commented Apr 1, 2021

No description provided.

RHEL8/EPEL brings `importlib-metadata` 0.23 as a package. Since this is
a backport of a Python stdlib package (starting with Python 3.9), we can
assume its API to be quite stable (furthermore, `gptsum` only uses very
basic functionality ofo the library), so let's depend on 0.23 (or
higher) without any other bounds (since 'or' version bounds can't be
defined in Python, it seems).

See: python-poetry/poetry#3840
This is a first step to add RPM building to the project. It adds a new
Nox session which doesn't install dependencies as pinned by Poetry (in
`poetry.lock`), but instead hard-codes some versions/constraints as
found in CentOS 8 and EPEL.

Since the original tests code was not compatible with these older
versions of packages (e.g., `pytest`), some code changes were required,
either based on import names being (un)available, or based on version
checks.
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.

1 participant