https://bugzilla.redhat.com/show_bug.cgi?id=2423881
Bug ID: 2423881
Summary: python-kaptan fails to build with Python 3.15:
AttributeError: 'SourceFileLoader' object has no
attribute 'load_module'. Did you mean: 'exec_module'?
in test_py_file_handler and test_py_file_away_handler
Product: Fedora
Version: rawhide
Status: NEW
Component: python-kaptan
Assignee: davide(a)cavalca.name
Reporter: ksurma(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: davide(a)cavalca.name,
epel-packagers-sig(a)lists.fedoraproject.org,
ksurma(a)redhat.com, mhroncok(a)redhat.com
Blocks: 2412434 (PYTHON3.15)
Target Milestone: ---
Classification: Fedora
python-kaptan fails to build with Python 3.15.0a3.
__________________________ test_py_file_away_handler
___________________________
tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_py_file_away_handler0')
testconfig = {'debug': False}
def test_py_file_away_handler(tmpdir, testconfig):
py_file = tmpdir.join('config2.py')
py_file.write("""DATABASE = 'mysql://root:123456@localhost/girlz'
DEBUG = False
PAGINATION = {
'per_page': 10,
'limit': 20,
}
""")
config = kaptan.Kaptan()
> config.import_config(str(py_file))
tests/test_kaptan.py:273:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../BUILDROOT/usr/lib/python3.15/site-packages/kaptan/__init__.py:91: in
import_config
self.configuration_data = self.handler.load(data)
^^^^^^^^^^^^^^^^^^^^^^^
../BUILDROOT/usr/lib/python3.15/site-packages/kaptan/handlers/pyfile_handler.py:55:
in load
module = import_pyfile(file_)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pathname =
'/tmp/pytest-of-mockbuild/pytest-0/test_py_file_away_handler0/config2.py'
mod_name = ''
def import_pyfile(pathname, mod_name=''):
"""Import the contents of filepath as a Python module.
Parameters
----------
pathname: str
Path to the .py file to be imported as a module
mod_name: str
Name of the module when imported
Returns
-------
mod
The imported module
Raises
------
IOError
If file is not found
"""
if not os.path.isfile(pathname):
raise IOError('File {0} not found.'.format(pathname))
if sys.version_info[0] == 3 and sys.version_info[1] > 2: # Python >=
3.3
import importlib.machinery
loader = importlib.machinery.SourceFileLoader('', pathname)
> mod = loader.load_module(mod_name)
^^^^^^^^^^^^^^^^^^
E AttributeError: 'SourceFileLoader' object has no attribute
'load_module'. Did you mean: 'exec_module'?
FAILED tests/test_kaptan.py::test_py_file_handler - AttributeError:
'SourceFi...
FAILED tests/test_kaptan.py::test_py_file_away_handler - AttributeError:
'Sou...
https://docs.python.org/3.15/whatsnew/3.15.html
For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-r…
For all our attempts to build python-kaptan with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-…
Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package
builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/
Let us know here if you have any questions.
Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all
pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive
[Build]Requires),
so if this package is required a lot, it's important for us to get it fixed
soon.
We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work
around it on our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2412434
[Bug 2412434] Python 3.15
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2423881
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-sp…
https://bugzilla.redhat.com/show_bug.cgi?id=2496858
Bug ID: 2496858
Summary: Fontawesome icons are missing in the generated output
Product: Fedora
Version: rawhide
OS: Linux
Status: NEW
Component: python-pydata-sphinx-theme
Severity: high
Assignee: loganjerry(a)gmail.com
Reporter: tintou(a)noel.tf
CC: epel-packagers-sig(a)lists.fedoraproject.org,
jonathan(a)almalinux.org, loganjerry(a)gmail.com
Target Milestone: ---
Classification: Fedora
I'm using sphinx with the pydata theme and I can't see fontawesome icons there,
I can see in the browser console for instance:
GET
http://127.0.0.1:9000/_static/vendor/fontawesome/webfonts/fa-solid-900.woff2
[HTTP/1 404 File not found 1ms]
This seems to only be an issue with the fedora version of the pydata theme.
Reproducible: Always
Steps to Reproduce:
1. Create a documentation using a `note` field for instance (that is using a
font-awesome icon)
Actual Results:
The icon is not showing
Expected Results:
The icon should be showing
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2496858
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-sp…