Bug 1815810 - Review Request: python-pg8000 - Pure Python PostgreSQL Driver
Summary: Review Request: python-pg8000 - Pure Python PostgreSQL Driver
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1816113
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-21 22:05 UTC by ekulik
Modified: 2020-05-03 04:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-12 13:47:29 UTC
Type: ---
Embargoed:
ngompa13: fedora-review?


Attachments (Terms of Use)

Description ekulik 2020-03-21 22:05:29 UTC
Spec URL: https://ekulik.fedorapeople.org/python-pg8000.spec
SRPM URL: https://ekulik.fedorapeople.org/python-pg8000-1.14.0-1.fc33.src.rpm
Description: pg8000 is a pure-Python PostgreSQL driver that complies with DB-API 2.0. The driver communicates with the database using the PostgreSQL Backend / Frontend Protocol.
Fedora Account System Username: ekulik

Comment 1 ekulik 2020-03-21 22:06:30 UTC
This is a retired package in Fedora. I want to bring it back to be able to build a newer version of python-testing.postgresql.

Comment 3 Neal Gompa 2020-03-22 02:51:51 UTC
Taking this review.

Comment 4 Neal Gompa 2020-03-22 02:52:50 UTC
The changelog section is empty. Can you restore the changelog from the original package spec?

Comment 5 ekulik 2020-03-22 10:17:45 UTC
(In reply to Neal Gompa from comment #4)
> The changelog section is empty. Can you restore the changelog from the
> original package spec?

Oh, yes, sorry.

Comment 7 Neal Gompa 2020-03-22 12:25:18 UTC
Initial review comments:

> BuildRequires:  python3-setuptools

I'd suggest using "python3dist(setuptools)" here.

> Suggests:       python3-sqlalchemy

I'd suggest using "Enhances: python3dist(sqlalchemy)" here. It's a reverse hint, not a forward one.

> Suggests:       postgresql

Why are you suggesting this? This doesn't use the PostgreSQL clients at all...

Comment 8 ekulik 2020-03-23 08:49:26 UTC
(In reply to Neal Gompa from comment #7)
> Initial review comments:
> 
> > BuildRequires:  python3-setuptools
> 
> I'd suggest using "python3dist(setuptools)" here.

Sure thing.

> > Suggests:       python3-sqlalchemy
> 
> I'd suggest using "Enhances: python3dist(sqlalchemy)" here. It's a reverse
> hint, not a forward one.

Will do.

> > Suggests:       postgresql
> 
> Why are you suggesting this? This doesn't use the PostgreSQL clients at
> all...

You have to realize that there is historical baggage and that someone already approved the changes, so I’m not questioning everything I come in touch with.

I did, however, find https://bugzilla.redhat.com/show_bug.cgi?id=1304522#c8, so seems that it can go.

Comment 9 ekulik 2020-03-23 09:12:21 UTC
Argh, the package is not installable due to an unmet dependency on https://pypi.org/project/scramp/.

Comment 10 ekulik 2020-03-23 09:18:29 UTC
Spec URL: https://ekulik.fedorapeople.org/python-pg8000.spec
SRPM URL: https://ekulik.fedorapeople.org/python-pg8000-1.14.0-1.fc33.src.rpm

Including this for posterity. I’m not going to maintain additional packages just for this.

Comment 11 Neal Gompa 2020-03-23 11:34:14 UTC
(In reply to Ernestas Kulik from comment #10)
> I’m not going to maintain additional packages just for this.

It looks like it's in the review queue already. So you might want to consider reopening?

Comment 12 Fabian Affolter 2020-03-23 14:24:23 UTC
I might need pg8000 in the future.

Comment 13 Itamar Reis Peixoto 2020-03-29 18:10:09 UTC
lets finish this, please review.

Comment 14 Neal Gompa 2020-04-08 23:10:38 UTC
More comments:

> %pycached %{python3_sitelib}/%{pypi_name}/__init__.py
> %pycached %{python3_sitelib}/%{pypi_name}/core.py
> %pycached %{python3_sitelib}/%{pypi_name}/_version.py

This is completely unnecessary for this module, please just use "%{python3_sitelib}/%{pypi_name}/"

Comment 15 ekulik 2020-04-09 10:29:36 UTC
(In reply to Neal Gompa from comment #14)
> More comments:
> 
> > %pycached %{python3_sitelib}/%{pypi_name}/__init__.py
> > %pycached %{python3_sitelib}/%{pypi_name}/core.py
> > %pycached %{python3_sitelib}/%{pypi_name}/_version.py
> 
> This is completely unnecessary for this module, please just use
> "%{python3_sitelib}/%{pypi_name}/"

Then for what modules would it be necessary? I much prefer spelling out every single file so that I know if something disappears either intentionally or not.

Comment 16 Neal Gompa 2020-04-10 03:51:49 UTC
(In reply to Ernestas Kulik from comment #15)
> (In reply to Neal Gompa from comment #14)
> > More comments:
> > 
> > > %pycached %{python3_sitelib}/%{pypi_name}/__init__.py
> > > %pycached %{python3_sitelib}/%{pypi_name}/core.py
> > > %pycached %{python3_sitelib}/%{pypi_name}/_version.py
> > 
> > This is completely unnecessary for this module, please just use
> > "%{python3_sitelib}/%{pypi_name}/"
> 
> Then for what modules would it be necessary? I much prefer spelling out
> every single file so that I know if something disappears either
> intentionally or not.

%pycached was created to make it easier to package Python modules that just ship a file into %python3_sitelib and capture the cache file along with it. While you can certainly use it with a module that installs properly into a directory providing a namespace, there's no point and any separation would just break the module anyway. You're not subpackaging within that folder tree, so why pretend like you might?

Comment 17 Itamar Reis Peixoto 2020-04-20 03:00:42 UTC

*** This bug has been marked as a duplicate of bug 1825716 ***

Comment 19 Fedora Update System 2020-04-22 21:04:54 UTC
FEDORA-2020-8bd55aa329 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-8bd55aa329

Comment 20 Fedora Update System 2020-04-22 21:04:55 UTC
FEDORA-2020-3e25dca79a has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3e25dca79a

Comment 21 Fedora Update System 2020-04-23 20:45:43 UTC
FEDORA-2020-3e25dca79a has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2020-3e25dca79a \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3e25dca79a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2020-04-25 04:18:30 UTC
FEDORA-2020-8bd55aa329 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2020-8bd55aa329 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-8bd55aa329

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2020-05-01 04:05:48 UTC
FEDORA-2020-3e25dca79a has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2020-05-03 04:53:32 UTC
FEDORA-2020-8bd55aa329 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.