Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aio-libs/aiopg
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: aio-libs/aiopg
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 8,472 additions and 5,604 deletions.
  1. +106 −0 .github/ISSUE_TEMPLATE/bug_report.yml
  2. +12 −0 .github/ISSUE_TEMPLATE/config.yml
  3. +61 −0 .github/ISSUE_TEMPLATE/feature_request.yml
  4. +92 −0 .github/workflows/ci.yml
  5. +4 −2 .gitignore
  6. +6 −0 .isort.cfg
  7. +4 −0 .pyup.yml
  8. +12 −0 .readthedocs.yml
  9. +0 −67 .travis.yml
  10. +0 −15 ACKS.txt
  11. +302 −9 CHANGES.txt
  12. +45 −33 CONTRIBUTING.rst
  13. +12 −0 CONTRIBUTORS.txt
  14. 0 LICENSE.txt → LICENSE
  15. +4 −7 MAINTAINERS.txt
  16. +2 −1 MANIFEST.in
  17. +43 −11 Makefile
  18. +30 −24 README.rst
  19. +74 −26 aiopg/__init__.py
  20. +1,035 −255 aiopg/connection.py
  21. +0 −401 aiopg/cursor.py
  22. +0 −1 aiopg/log.py
  23. +337 −155 aiopg/pool.py
  24. 0 aiopg/py.typed
  25. +28 −9 aiopg/sa/__init__.py
  26. +230 −132 aiopg/sa/connection.py
  27. +145 −82 aiopg/sa/engine.py
  28. +128 −103 aiopg/sa/result.py
  29. +57 −66 aiopg/sa/transaction.py
  30. +3 −0 aiopg/sa/utils.py
  31. +147 −177 aiopg/utils.py
  32. BIN docs/_static/aiopg-icon.png
  33. +8 −0 docs/changes.rst
  34. +90 −79 docs/conf.py
  35. +211 −124 docs/core.rst
  36. +8 −0 docs/essays.rst
  37. +32 −18 docs/examples.rst
  38. +19 −9 docs/glossary.rst
  39. +64 −58 docs/index.rst
  40. +14 −0 docs/misc.rst
  41. +22 −0 docs/run_loop.rst
  42. +110 −95 docs/sa.rst
  43. +19 −0 docs/team.rst
  44. +55 −0 examples/default_field_sa.py
  45. +159 −0 examples/isolation_sa_transaction.py
  46. +50 −0 examples/named_field_sa.py
  47. +20 −14 examples/notify.py
  48. +0 −48 examples/notify_old_style.py
  49. +143 −99 examples/sa.py
  50. +0 −132 examples/sa_oldstyle.py
  51. +3 −3 examples/simple.py
  52. +0 −18 examples/simple_oldstyle.py
  53. +22 −19 examples/simple_sa.py
  54. +0 −39 examples/simple_sa_oldstyle.py
  55. +145 −0 examples/simple_sa_transaction.py
  56. +33 −0 examples/transaction.py
  57. +78 −0 examples/types_field_sa.py
  58. +16 −12 requirements.txt
  59. +6 −0 setup.cfg
  60. +64 −50 setup.py
  61. +0 −11 setup_test_db.sql
  62. +492 −4 tests/conftest.py
  63. +0 −290 tests/pep492/test_async_await.py
  64. +262 −0 tests/test_async_await.py
  65. +186 −0 tests/test_async_transaction.py
  66. +517 −587 tests/test_connection.py
  67. +257 −422 tests/test_cursor.py
  68. +30 −43 tests/test_extended_types.py
  69. +71 −0 tests/test_isolation_level.py
  70. +565 −589 tests/test_pool.py
  71. +393 −483 tests/test_sa_connection.py
  72. +54 −0 tests/test_sa_cursor.py
  73. +93 −0 tests/test_sa_default.py
  74. +8 −9 tests/test_sa_distil.py
  75. +183 −181 tests/test_sa_engine.py
  76. +79 −0 tests/test_sa_priority_name.py
  77. +36 −0 tests/test_sa_result.py
  78. +441 −399 tests/test_sa_transaction.py
  79. +133 −124 tests/test_sa_types.py
  80. +264 −0 tests/test_transaction.py
  81. +79 −0 tests/test_utils.py
  82. +19 −17 tests/test_version.py
  83. +0 −52 tox.ini
106 changes: 106 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
name: Bug Report
description: Create a report to help us improve.
labels: [bug]
assignees: aio-libs/triagers
body:
- type: markdown
attributes:
value: |
**Thanks for taking a minute to file a bug report!**
Verify first that your issue is not [already reported on
GitHub][issue search].
_Please fill out the form below with as many precise
details as possible._
[issue search]: ../search?q=is%3Aissue&type=issues
- type: textarea
attributes:
label: Describe the bug
description: >-
A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
attributes:
label: To Reproduce
description: >-
Describe the steps to reproduce this bug.
placeholder: |
1. Have certain environment
2. Run given code snippet in a certain way
3. See some behavior described
validations:
required: true

- type: textarea
attributes:
label: Expected behavior
description: >-
A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
attributes:
label: Logs/tracebacks
description: |
If applicable, add logs/tracebacks to help explain your problem.
Paste the output of the steps above, including the commands
themselves and their output/traceback etc.
render: python-traceback
validations:
required: true

- type: textarea
attributes:
label: Python Version
description: Attach your version of Python.
render: console
value: |
$ python --version
validations:
required: true
- type: textarea
attributes:
label: aiopg Version
description: Attach your version of aiopg.
render: console
value: |
$ python -m pip show aiopg
validations:
required: true

- type: textarea
attributes:
label: OS
placeholder: >-
For example, Arch Linux, Windows, macOS, etc.
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: |
Add any other context about the problem here.
Describe the environment you have that lead to your issue.
This includes proxy server and other bits that are related to your case.
- type: checkboxes
attributes:
label: Code of Conduct
description: |
Read the [aio-libs Code of Conduct][CoC] first.
[CoC]: https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
options:
- label: I agree to follow the aio-libs Code of Conduct
required: true
...
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
blank_issues_enabled: false # default: true
contact_links:
- name: 🤷💻🤦 StackOverflow
url: https://stackoverflow.com/questions/tagged/aiopg
about: Please ask typical Q&A here
- name: 💬 Discourse
url: https://aio-libs.discourse.group/
about: Please start usage discussions here
- name: 💬 Gitter Chat
url: https://gitter.im/aio-libs/Lobby
about: Chat with devs and community
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: 🚀 Feature request
description: Suggest an idea for this project.
labels: enhancement
body:
- type: markdown
attributes:
value: |
**Thanks for taking a minute to file a feature for aiopg!**
Verify first that your feature request is not [already reported on
GitHub][issue search].
_Please fill out the form below with as many precise
details as possible._
[issue search]: ../search?q=is%3Aissue&type=issues
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: >-
Please add a clear and concise description of what
the problem is. _Ex. I'm always frustrated when [...]_
- type: textarea
attributes:
label: Describe the solution you'd like
description: >-
A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered
description: >-
A clear and concise description of any alternative solutions
or features you've considered.
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: >-
Add any other context or screenshots about
the feature request here.
- type: checkboxes
attributes:
label: Code of Conduct
description: |
Read the [aio-libs Code of Conduct][CoC] first.
[CoC]: https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
options:
- label: I agree to follow the aio-libs Code of Conduct
required: true
...
92 changes: 92 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: CI

on:
push:
branches:
- master
- '[0-9].[0-9]+'
tags: [ 'v*' ]
pull_request:
branches:
- master
- '[0-9].[0-9]+'

jobs:
test:
name: Test on Python ${{ matrix.python }}
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
sqlalchemy: ['sqlalchemy[postgresql_psycopg2binary]>=1.4,<1.5', 'sqlalchemy[postgresql_psycopg2binary]>=2.0,<2.1']
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
pip install -e .
pip install -r requirements.txt
pip install codecov
- name: Install ${{ matrix.sqlalchemy }}
run: |
pip install "${{ matrix.sqlalchemy }}"
- name: Run tests
run: |
make cov-ci
python setup.py check -rms
codecov
lint:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install -e .
pip install -r requirements.txt
- name: Run linters
run: |
make lint
deploy:
name: Deploy
runs-on: ubuntu-latest
needs:
- test
- lint
# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run:
python -m pip install -U pip wheel twine
- name: Make dists
run:
python setup.py sdist bdist_wheel
- name: Check dists
run:
twine check dist/*
- name: PyPI upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -8,5 +8,7 @@ build
.coverage.*
htmlcov
docs/_build
.tox
.cache
.cache
.pytest_cache
.python-version
venv
6 changes: 6 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[settings]
line_length=79
multi_line_output=3
include_trailing_comma=True
indent=' '
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
4 changes: 4 additions & 0 deletions .pyup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Label PRs with `deps-update` label
label_prs: deps-update

schedule: every week
12 changes: 12 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

build:
image: latest

python:
version: 3.7
install:
- requirements: requirements.txt
- method: pip
path: .
system_packages: true
67 changes: 0 additions & 67 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions ACKS.txt

This file was deleted.

Loading