ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Upgrade Pyo3 #905

Closed jw3 closed 9 months ago

jw3 commented 1 year ago

Updates pyo3 to 0.19 to avoid Fedora deprecation of earlier versions due to Python 3.12 incompatibilities.

To do this upgrade we must drop Python 3.6. As a result rhel 8 support is forking off in a separate branch. This commit removes rhel 8 support from the master branch.

The minimum Python support is now 3.9.

Cargo spec has been updated to 2021 version.

Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM/#XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM

Closes #882

jw3 commented 1 year ago

Building on 0.18 ensure provide compatibility with fc38, fc39, and rawhide.

jw3 commented 10 months ago

Per https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM/#XG7GMDZFL2RO4QHEFBJKU7YDE3AZBRVM the update will need to be >= 0.19 to support Python 3.12

Either in this PR or a separate depending on the additional changes. Either way it is a blocker for next release.

jw3 commented 10 months ago

I this needs #951

jw3 commented 10 months ago

Using 0.20 is possible but blocked by the lack of pyo3-log 0.9 in fedora. So for expediency we will go to 0.19 for now and request that pyo3-log be updated.