1
0
Fork 0
Commit Graph

19 Commits

Author SHA1 Message Date
Dick Marinus fa054a5546
add python 3.11 support (#1356)
* add python 3.11 support

* use beta version

* Python 11 is available.

Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-11-11 10:31:41 -08:00
Rodrigo Neri (Rigo) 1726ff5397
Changed destructive_warning to take a list of destructive commands (#1328)
* Changed destructive_warning to take a list of destructive commands and added the dsn_alias as part of the destructive command warning

* Updated parse_destructive_warning to handle None

* Reverted auto formatted change to AUTHORS

* Reverted auto formatted change to AUTHORS
2022-10-13 14:42:22 -07: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
laixintao f985e1bdd8
test: test pgcli on python3.9 (#1214)
* test: test pgcli on python3.9

* test on 3.9

* use 3.9-dev version from travis.

* try to fix pexpect EOF.
2020-10-13 11:47:34 -07:00
赖信涛 e9874e2f96
python3.8: add travis test and setup.py class. (#1157) 2020-03-18 09:11:10 -07:00
赖信涛 bc7a5d0100
Drop Python3.5. (#1154)
* Drop Python3.5.

* delete 3.5 from setup.py

* fix black format. Using python3.7 for development now.

* black target to py36
2020-03-11 13:58:13 -07:00
赖信涛 fd77549754
Deprecate Python2.7. (#1153)
* deprecate Python2.7.

So we can use latest version of prompt-toolit.
Relate: https://github.com/dbcli/pgcli/pull/1149

* black format, remove 2.7 support.

* using version py35 for black.

* Revert "black format, remove 2.7 support."

This reverts commit 4b6d0496cc.

* deprecated py27 using black.

* remove 2.7 from travis.

* update setup.py: delete python 2.7 support.
2020-03-09 20:14:51 -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 3366be52fb Build pgcli with 3.7. 2019-05-03 21:36:21 -04:00
Mikhail Elovskikh f614cef7ed Support multihost connection string (#978)
* Switch to psycopg2 parse_dsn instead of urlparse

* Added wronglink to contributors and updated changelog

* Fix test codestyle

* Support for PGPORT customization in tests

* Support for PGPORT customization in tests

* Refactored PGExecute init and moved short_host generation to object property

* Fix test util codestyle

* Fix local tests run

* Store PGExecute initial params in  _conn_params and added PGExecute.copy method

* Fix codestyle

* Added docstring to PGExecute.copy() method
2019-01-03 14:27:47 -08:00
Irina Truong d07230495d Removed support for Python 3.3. 2018-01-15 19:10:06 -08:00
Dick Marinus bbb0866806 Add behave to tox 2017-05-22 20:44:02 +02:00
Amjith Ramanujam 3cb3b4cd62 Add python 3.5 and 3.6 to test suite. 2017-03-03 11:05:26 -08:00
Iryna Cherniavska 614039f469 Added humanize to tox to fix tox failure. 2016-01-06 15:50:17 -08:00
Iryna Cherniavska 1932705258 Pinned pexpect to 3.3. Updated tox with pgspecial. 2015-10-05 14:18:44 -07:00
Karl-Aksel Puulmann b54823c96a Fix problem with travis not using correct python versions when testing. 2015-01-09 12:33:27 +02:00
Karl-Aksel Puulmann a87f3a1fcc Checking if database exists and some initial fixtures which clean up 2015-01-09 00:13:19 -08:00
Karl-Aksel Puulmann 40c582e4c7 Experiment running tests only once per environment. Old version runs tests through 16 times instead of 4 times in total.
Idea taken from https://github.com/eventlet/eventlet/blob/master/.travis.yml.
2015-01-07 22:15:57 +02:00
Amjith Ramanujam 922a74d58a Add tox and fix python3 failures. 2015-01-02 00:04:01 -08:00