First, I would suggest checking to see if anything even uses python-pdfminer. I use DNF's repoquery to identify things that use it. Here's an example command you can use to identify if something depends on it: * sudo dnf repoquery --queryformat "%{sourcerpm}: %{reponame}" --whatrequires "python-pdfminer"
Alternatively, if you want to know the *actual* RPMs that depend on it, you can use "%{name}-%{version}-%{release}.%{arch}" instead of "%{sourcerpm}". I find the source RPMs are more useful to see, though it depends on your case.
In any case, it looks like nothing depends on python-pdfminer, based on my repoquery. If the API is compatible and it uses the same module namespace, it sounds like it should be fine to replace it and have the appropriate Obsoletes/Provides set up.
On Sun, Dec 20, 2015 at 1:29 PM, Ben Rosser rosser.bjr@gmail.com wrote:
Hello all,
I was hoping for some Python packaging advice, as it relates to "porting" to Python 3-- I assume this is the right place to ask?
I currently maintain python-pdfminer. (https://github.com/euske/pdfminer), sadly only for Python 2. Recently I investigated what the status of Python 3 support would be; it seems that pdfminer upstream is uninterested in adding Python 3 compatibility (see https://github.com/euske/pdfminer/pull/71). That pull request was turned into a fork, pushed to PyPI under the name pdfminer.six, and in general it seems to be a lot more maintained at the moment than pdfminer.
I investigated packaging pdfminer.six (package name stylized as pdfminer-six). I set python2-pdfminer-six to obsolete pdfminer and made it available through this Copr for testing purposes: https://copr.fedoraproject.org/coprs/tc01/pdfminer.six/
Now, I don't know if anyone is currently using pdfminer in Fedora, and I am very hesitant to just replace a package with a fork.
What's the right thing to do here? Replace pdfminer? Ship python3-pdfminer-six, have it provide python3-pdfminer, and keep using the original package for Python 2? Do nothing, and wait and see what happens upstream?
Thanks for any suggestions in advance, Ben
python-devel mailing list python-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject....