Обсуждение: Psycopg 2.6.2 released

Поиск
Список
Период
Сортировка

Psycopg 2.6.2 released

От
Daniele Varrazzo
Дата:
Psycopg 2.6.2 has been released. You can get it from:

http://initd.org/psycopg/tarballs/PSYCOPG-2-6/psycopg2-2.6.2.tar.gz

This is an interim release, packing together one year of bug fixes,
before the release 2.7, which will deliver several new features. Thank
you very much to everybody contributing with reports, code,
suggestions.

- Fixed inconsistent state in externally closed connections
  (tickets #263, #311, #443).
- Report the server response status on errors (such as ticket #281).
- Raise 'NotSupportedError' on unhandled server response status
  (ticket #352).
- Allow overriding string adapter encoding with no connection (ticket #331).
- The 'wait_select' callback allows interrupting a long-running query in an
  interactive shell using Ctrl-C (ticket #333).
- Fixed 'PersistentConnectionPool' on Python 3 (ticket #348).
- Fixed segfault on 'repr()' of an uninitialized connection (ticket #361).
- Allow adapting bytes using 'QuotedString' on Python 3 (ticket #365).
- Added support for setuptools/wheel (ticket #370).
- Fix build on Windows with Python 3.5, VS 2015 (ticket #380).
- Fixed 'errorcodes.lookup' initialization thread-safety (ticket #382).
- Fixed 'read()' exception propagation in copy_from (ticket #412).
- Fixed possible NULL TZ decref  (ticket #424).
- 'errorcodes' map updated to PostgreSQL 9.5.


----

Psycopg is the most popular PostgreSQL adapter for the Python
programming language. At its core it fully implements the Python DB
API 2.0 specifications. Several extensions allow access to many of the
features offered by PostgreSQL.


Re: Psycopg 2.6.2 released

От
Devrim Gündüz
Дата:
Hi Daniele,

On Thu, 2016-07-07 at 04:10 +0100, Daniele Varrazzo wrote:
> Psycopg 2.6.2 has been released. You can get it from:
>
> http://initd.org/psycopg/tarballs/PSYCOPG-2-6/psycopg2-2.6.2.tar.gz

So, I noticed a changes in minor release, which I think is not a good idea,
which is in setup.cfg. Not to mention about the removal of the comments in the
file, pg_config parameter has been removed from the default conf. Any reasons
why?

FWIW, adding it to setup.cfg still works.

Any reason why? I will have to update my patch for this release :P

Cheers,
--

Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Вложения

Re: Psycopg 2.6.2 released

От
Daniele Varrazzo
Дата:
On Thu, Jul 7, 2016 at 11:08 AM, Devrim Gündüz <devrim@gunduz.org> wrote:
>
> Hi Daniele,
>
> On Thu, 2016-07-07 at 04:10 +0100, Daniele Varrazzo wrote:
>> Psycopg 2.6.2 has been released. You can get it from:
>>
>> http://initd.org/psycopg/tarballs/PSYCOPG-2-6/psycopg2-2.6.2.tar.gz
>
> So, I noticed a changes in minor release, which I think is not a good idea,
> which is in setup.cfg. Not to mention about the removal of the comments in the
> file, pg_config parameter has been removed from the default conf. Any reasons
> why?
>
> FWIW, adding it to setup.cfg still works.
>
> Any reason why? I will have to update my patch for this release :P

Aww! No, it wasn't supposed to be that :\ I haven't changed that file
in the source code

    https://github.com/psycopg/psycopg2/blob/2_6_2/setup.cfg

it is setuptools messing up with that file: verified by using
distutils for a test. Googling for the problem (setuptools rewriting
setup.cfg) I couldn't find anything. Grrr... I hated including it in
this release but it was necessary for Python 3.5, windows, wheels...

I've opened this ticket for it: https://github.com/psycopg/psycopg2/issues/453

Suggestions? Can we survive this way for this release? I've changed
the content of setup.cfg using empty options instead of comments so at
least the options, if not the comments, appear in the munged setup.cfg
(see the ticket). I would like to see if other problems related to
setuptools appear with this release, in which case I'd roll back to
distutils, release a quick 2.6.3 and postpone using setuptools in 2.7.

-- Daniele


Re: Psycopg 2.6.2 released

От
Devrim Gündüz
Дата:
Hi,

On Thu, 2016-07-07 at 12:12 +0100, Daniele Varrazzo wrote:
> Aww! No, it wasn't supposed to be that :\ I haven't changed that file
> in the source code
>
>     https://github.com/psycopg/psycopg2/blob/2_6_2/setup.cfg
>
> it is setuptools messing up with that file: verified by using
> distutils for a test.

:/

>  Googling for the problem (setuptools rewriting
> setup.cfg) I couldn't find anything. Grrr... I hated including it in
> this release but it was necessary for Python 3.5, windows, wheels...
>
> I've opened this ticket for it: https://github.com/psycopg/psycopg2/issues/45
> 3
>
> Suggestions? Can we survive this way for this release?

I think we can survive (I already updated my patch), but we should take care of
it in next release.

Thanks for looking at this.

Cheers,
--

Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Вложения