Hi! I'm using this https://github.com/gyli/PyWaffle for some visualizations for Fedora Project stats.
I'm kind of out of the loop on the state of the art of python packaging, and wondered if some kind Python SIG person would like to take it on for me.
I've been experimenting with the new macros for Python packages, and
ran into some issues building Sphinx docs for compiled extensions.
When building docs, one usually has to be able to import the project.
When the project uses compiled extensions, it is not sufficient to
point to the original unpacked sources, but instead must point to the
built ones. However, since the new %pyprojec_wheel creates a wheel, I
don't know how to do this properly.
Setting e.g., PYTHONPATH=/path/to/*.whl doesn't seem to work (it seems
to load everything else but the shared library):
+ pushd docs
++ ls /builddir/build/BUILD/pikepdf-2.16.1/docs/../pyproject-wheeldir/pikepdf-2.16.1-cp310-cp310-linux_x86_64.whl
+ sphinx-build-3 . ../html
Running Sphinx v4.1.2
There is a programmable error in your configuration file:
Traceback (most recent call last):
line 13, in <module>
from . import _qpdf
ImportError: cannot import name '_qpdf' from partially initialized
module 'pikepdf' (most likely due to a circular import)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 327,
File "/builddir/build/BUILD/pikepdf-2.16.1/docs/conf.py", line 59, in <module>
import pikepdf # isort:skip pylint: disable=unused-import
line 16, in <module>
raise ImportError(_msg) from _e
ImportError: pikepdf's extension library failed to import
I am a reviewer of a new Python package. 
As I am far from being proficient, I seek another pair of eyes, a
I am an experienced packager, I am just new to Python packaging specifics.
I'm looking for someone who will be able to help both the newcomer who
submitted the package and me to learn Python packaging.
Would you please someone join me and review my review? 
Core Services - Databases Team
On Sunday, 12 September 2021 17.59.02 WEST Thomas Vandal wrote:
> I am a PhD student in astronomy at the Université de Montréal, in
> Canada. I use Fedora as my main OS and use Python a lot for my research
> work. I am new to contributing to Fedora. I am interested in packaging
> Python packages that I use for my research that is not yet available.
> This includes data analysis packages, astronomy-focused packages, and
> also more specialized packages related to my field of study
> For now, I am still learning about packaging for Fedora. Looking
> forward to submit a first package.
> Thomas Vandal
looking forward to see your contributions. Feel free to ask questions. It is
nice to see people working on Scientific Computing contributing to Fedora. :-)
PS: Obligatory joke, a poor attempt at showing empathy to newcomers: the last
time that I have studied Astronomy at University the number of known and
confirmed exoplanets could be counted by hand. :-D :-)
I am a PhD student in astronomy at the Université de Montréal, in
Canada. I use Fedora as my main OS and use Python a lot for my research
work. I am new to contributing to Fedora. I am interested in packaging
Python packages that I use for my research that is not yet available.
This includes data analysis packages, astronomy-focused packages, and
also more specialized packages related to my field of study
For now, I am still learning about packaging for Fedora. Looking
forward to submit a first package.
Hello, Python SIG. I've been meaning to join, but I've been busy for a
while in pursuit of a new job (which I will start in about a week).
I'm a maintainer of the pyp2rpm application, and have done some other
work to improve translation of Python dependencies to rpm.