Thread: pgweb: Powered by Python 3

pgweb: Powered by Python 3

From
"Jonathan S. Katz"
Date:
Hi,

As of earlier today, pgweb is now fully running using Python 3. Many
thanks to Magnus for his lead on this project and for the huge effort he
put in to ensure the code became Python 3 compatible.

As such, pgweb is dropping support for Python 2.

There are a few things to note for ongoing development.

1. All new patches to pgweb involving Python must be written in Python 3.

2. We will be enforcing the PEP8[1] style guide on all new Python code.
We have included a pre-commit git hook[2] that you can add to your local
repository to test for PEP8 style.

3. You will need to update your libraries for your Python 3 environment.
If you have a Python 2 virtualenv, you will need to remove it and
install one with Python 3. This can be done as such:

    python3 -m venv /path/to/your/local/pgweb/external

Once you activate the virtualenv, you can reinstall the dependencies with:

    pip install -r /path/to/your/local/pgweb/requirements.txt

which have been brought up-to-date.

4. If you have been developing a patch, please rebase against the
current HEAD and ensure it works for Python 3 and follows PEP8.

Thanks!

Jonathan

[1] https://www.python.org/dev/peps/pep-0008/
[2]
https://git.postgresql.org/gitweb/?p=pgweb.git;a=blob;f=tools/githook/pre-commit


Attachment

Re: pgweb: Powered by Python 3

From
Devrim Gündüz
Date:
Hi,

On Sat, 2019-01-26 at 14:47 -0500, Jonathan S. Katz wrote:
> As of earlier today, pgweb is now fully running using Python 3. Many
> thanks to Magnus for his lead on this project and for the huge effort he
> put in to ensure the code became Python 3 compatible.

Great news and work. Thanks everyone who involved.

Cheers,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment

Re: pgweb: Powered by Python 3

From
chris
Date:
font{ line-height: 1.6; } ul,ol{ padding-left: 20px; list-style-position: inside; }
Hi there,

Execute me for my ignorance, as I know, there is a pgweb project that is created by golang, are they the same one? Did you restructure it by python?

Thanks,

On 01/27/2019 05:43Devrim Gündüz<devrim@gunduz.org> wrote:

Hi,

On Sat, 2019-01-26 at 14:47 -0500, Jonathan S. Katz wrote:
As of earlier today, pgweb is now fully running using Python 3. Many
thanks to Magnus for his lead on this project and for the huge effort he
put in to ensure the code became Python 3 compatible.

Great news and work. Thanks everyone who involved.

Cheers,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Re: pgweb: Powered by Python 3

From
Andreas Karlsson
Date:
On 1/28/19 3:09 AM, chris wrote:
> Execute me for my ignorance, as I know, there is a pgweb project that is 
> created by golang, are they the same one? Did you restructure it by python?

No, not that pgweb. They are talking about the main repo for the 
postgresql.org website.

Link: https://git.postgresql.org/gitweb/?p=pgweb.git;a=summary

Andreas