1
0
Fork 0
Commit Graph

20 Commits

Author SHA1 Message Date
Irina Truong 7f05cdefbb
rst2html -> docutils (#1459)
* Is there rst2html?

* docutils then?
2024-04-19 21:08:36 -07:00
Damien Baty 9f114c4549 feat: Replace pendulum by home-made duration-to-words function
`pgcli` uses Pendulum to display the query execution time in words:

    > select pg_sleep(62)
    +----------+
    | pg_sleep |
    |----------|
    |          |
    +----------+
    SELECT 1
    Time: 62.066s (1 minute 2 seconds), executed in: 62.063s (1 minute 2 seconds)

Pendulum 3 (which has been released in December 2023 and is now
written in Rust) does not build on 32-bit architectures [1]. As such,
installing `pgcli` on such architectures fails. We could pin Pendulum
to version 2 (which was written in Python and builds "everywhere"),
but requiring a whole library and its own dependencies for such a
small feature seems unwarranted.

This commit thus removes the requirement on Pendulum and replaces it
by a simple "duration-to-words" function.

Fixes #1451.

[1] Upstream issue: https://github.com/sdispater/pendulum/issues/784
2024-02-20 12:51:20 +01:00
Dick Marinus 08cf5e720f
downgrade pendulum to released version (#1434)
* downgrade pendulum to released version

* install beta version of pendulum for 3.12
2023-10-29 16:04:00 -07:00
Irina Truong 6332e18b48
Drop python 3.7, add 3.12 (#1426)
* Fix deprecation.

* Drop python 3.7 and add 3.12.

* Bump pendulum.

* Changelog.

* Update gh actions.

* See if things pass without this scenario.

* Skip failing scenarios in 3.12.
2023-10-11 12:34:59 +08:00
laixintao f157f3f72e
runs test on main branch as well. (#1429)
* runs test on main branch as well.

reasons:
- tests passed on PR branches do not mean they will pass on main branch,
  for e.g. alice changed A in branch-a, bob changed B in branch-b, both
  tests passed and no conflict, but after merged to main, a bug occurs.
- wanna fix the badge in main branch ;D

* change the badge status to main branch only.
2023-10-07 17:56:08 -07:00
Irina Truong 43f24a5338 Newer black requires 3.8. 2023-10-06 17:51:35 -07:00
Irina Truong 7a4086c7c0 Python -m py.test doesn't work anymore. 2023-01-02 15:05:35 -08:00
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
lgtm-com[bot] 2cb6a28f39
Add CodeQL workflow for GitHub code scanning (#1381)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
2022-11-11 09:17:31 -08: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
Bruno Inec ed9d123073
Add SSH tunnel support (#1301)
* Add initial sshtunnel support

* Force CI to rerun.

* Fix unit test for 3.6.

* Black.

Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-02-18 14:57:42 -08:00
Irina Truong 000102ef9b
Conditional didn't work in CI. (#1237)
* Conditional didn't work in CI.

* Try to fix flaky exit.
2021-01-18 13:50:03 -08:00
Irina Truong 2a5e3df0d7
Trigger CI on pull request, not on push. (#1233) 2021-01-08 12:26:59 -08:00
Irina Truong 1bcaab1b8d
Add 3.9 to build matrix. (#1232) 2021-01-05 10:53:44 -08:00
Irina Truong f7f7c1b4fa Switch to Github Actions vs Travis. 2021-01-04 22:32:56 -08:00
Dick Marinus 67799b98ab add optional but default squash merge request to PULL_REQUEST_TEMPLATE (#1095) 2019-09-27 19:34:34 -07: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
Chris Fournier 3e6f793902 Switch PR template changelog ext from .md to .rst 2018-05-14 11:46:04 -04:00
Irina Truong e3df66a9fa Trimmed down issue template. 2017-03-19 12:14:38 -07:00
Irina Truong c3cdc338a7 PR and issue templates. 2017-03-18 14:24:34 -07:00