1
0
Fork 0
Commit Graph

20 Commits

Author SHA1 Message Date
Irina Truong f8ef25309b Go back to black 23.3.0 which supports 3.7 2023-10-06 18:16:30 -07:00
Irina Truong 4a4de5260c Update black. 2023-10-06 17:46:46 -07:00
Eric Young 79df61f674 Small developer improvements for Windows-based devs. 2022-09-01 10:32:36 -05:00
Irina Truong 18071754bc
Port to psycopg3 (#1324)
* WIP.

* Add some comments about porting from psycopg 2 to 3 (#1318)

* WIP

* Disable _set_wait_callback()

* TransactionStatus.

* First working query.

* More pg3 changes.

* test_pgexecute still fails.

* Fix bytea support.

* Fix json and enum unicode.

* Get unit tests to pass.

* Behave tests still break, WIP.

* Prompt seems to be displayed fine, why don't the tests see the whitespace?

* Python version.

* Fix test.

* Black.

* Added black to dev reqs.

* nbu link for donations.

* Use psycopg.sql to format statement.

* Special case for show help in pgbouncer.

* Fix test.

* Added integration test.

* Install pgbouncer in ci.

* Fix integration test.

* Remove tmate session.

* Revert commenting out python versions.

* Pin pgspecial to >=2.

* Changelog.

Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Co-authored-by: Amjith Ramanujam <amjith.r@gmail.com>
2022-06-06 11:20:48 -07:00
Miroslav Šedivý 762fb4b8da
Modernize code to Python 3.6+ (#1229)
1. `class A(object)` can be written as `class A:`
2. replace `dict([…])` and `set([…])` with `{…}`
3. use f-strings or compact `.format`
4. use `yield from` instead of `yield` in a `for` loop
5. import `mock` from `unittest`
6. expect `OSError` instead of `IOError` or `select` error
7. use Python3 defaults for file reading or `super()`
8. remove redundant parenthesis (keep those in tuples though)
9. shorten set intersection instead of creating lists
10. backslashes in strings do not have to be escaped if prepended with `r`
2021-02-12 21:34:56 +02:00
laixintao 5a61b243e0
lock prompt_toolkit on 3.0.5 for prompt_toolkit. 2020-09-14 10:21:50 +08:00
赖信涛 d444db412b
upgrade coverage to 5.x (#1158) 2020-03-18 12:59:01 -07:00
赖信涛 8fe316e537 Drop Python 3.4 support (#1141)
* remove python3.4 support.

Python 3.4 has reached end-of-life.
https://www.python.org/downloads/release/python-340/

* drop maximun version of pytest

* update changelog

* add laixintao to contributors, delete py34 from tox
2020-01-15 22:45:16 -08:00
Irina Truong 69b2da9f8e Add wheel to dev reqs (needed to release). 2019-12-04 09:29:24 -08:00
Irina Truong 8cb7009bcd
black all the things. (#1049)
* added black to develop guide

* no need for pep8radius.

* changelog.

* Add pre-commit checkbox.

* Add pre-commit to dev reqs.

* Add pyproject.toml for black.

* Pre-commit config.

* Add black to travis and dev reqs.

* Install and run black in travis.

* Remove black from dev reqs.

* Lower black target version.

* Re-format with black.
2019-05-25 13:08:56 -07:00
Max Rothman 172c9cd271 Respect \pset pager on expected behavior
"\pset pager" has three possible values: "always", "on", and "off".
pgcli previously treated all non-"off" values as "always". This change
implements the expected behavior, which is to use the pager when the
output is larger than the terminal height (See \pset pager in
https://www.postgresql.org/docs/9.2/static/app-psql.html). Pgcli adds to
this by also using the pager when the output is wider than the terminal
width.

Fixes #813
2018-09-23 17:02:08 -04:00
Irina Truong a1864ff3f6 Ported release script improvements from mycli. 2018-03-21 15:44:18 -07:00
Pierre GIRAUD 48ede44f23
Pin autopep8 version to avoid hang-closing bug
See 1da113b549
2018-02-15 15:35:06 +01:00
Irina Truong 952eb9f93b Remove retrying. 2017-10-06 11:54:42 -07:00
Irina Truong d698a33020 Switch travis to requirements-dev. 2017-10-06 11:31:22 -07:00
Irina Truong 1a7a823169 Work around a race condition when reading tee output. 2017-10-06 11:19:44 -07:00
Irina Truong b3ade2db9d Ported pep8radius addition from mycli. 2017-04-07 17:00:35 -07:00
Irina Truong 4aea9015aa Added coverage support for functional tests. 2017-03-31 16:00:54 -07:00
Iryna Cherniavska 1932705258 Pinned pexpect to 3.3. Updated tox with pgspecial. 2015-10-05 14:18:44 -07:00
Iryna Cherniavska 5b8afaafd6 Started working on integration tests. 2015-06-22 09:05:40 -07:00