Skip to content

Commit

Permalink
release 1.0.0 (#592)
Browse files Browse the repository at this point in the history
* modification in tests

* removing obsolete examples

* removing old style (yield from) in docs

* rename psycopg2 to psycopg2-binary in docs

* added note in docs about going to python3.5.2+

* interim fix due to issues #533

* add docs example and style

* add isort and deleted obsolete non-asynchronous cursor iteration

* fix async iter for python 3.5

* add readthedocs.yml

* travis allow failures python:nightly

* travis allow failures python:nightly

* travis allow failures python:nightly

* travis allow failures python:nightly

* travis remove docker cache

* fix code style yml

* refactor

* fix docs

* normalized version c to rc pep440

* edit docs

* refactor sa connection

* fix travis

* fix travis

* fix travis

* fix test

* Update aiopg/cursor.py

Co-Authored-By: Boryslav Larin <brabadu@gmail.com>

* Update docs/one_cursor.rst

Co-Authored-By: Boryslav Larin <brabadu@gmail.com>

* Update .readthedocs.yml

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* Update CONTRIBUTING.rst

Co-Authored-By: Sviatoslav Sydorenko <wk@sydorenko.org.ua>

* remove mogrify

* add changes

* python 3.8 and update requirements

* python 3.8 and update requirements

* python 3.8 and update requirements
  • Loading branch information
vir-mir authored Sep 23, 2019
1 parent a9a25e0 commit ea9c039
Show file tree
Hide file tree
Showing 64 changed files with 1,416 additions and 868 deletions.
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
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
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ script:
- make cov-ci
- python setup.py check -rms

matrix:
allow_failures:
- python: "nightly"

env:
global:
- PYTHON=python
Expand All @@ -58,4 +62,4 @@ deploy:
on:
tags: true
all_branches: true
python: 3.5
python: 3.7
18 changes: 0 additions & 18 deletions ACKS.txt

This file was deleted.

71 changes: 36 additions & 35 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,119 +1,120 @@
CHANGES
-------
1.0.0 (2019-09-20)
* Removal of an asynchronous call in favor of issues # 550
* Big editing of documentation and minor bugs #534

0.16.0 (2019-01-25)
^^^^^^^^^^^^^^^^^^^

* Fix select priority name (#525)
* Fix select priority name `#525 <https://github.com/aio-libs/aiopg/issues/525>`_

* Rename `psycopg2` to `psycopg2-binary` to fix deprecation warning (#507)
* Rename `psycopg2` to `psycopg2-binary` to fix deprecation warning `#507 <https://github.com/aio-libs/aiopg/issues/507>`_

* Fix #189 hstore when using ReadDictCursor (#512)
* Fix `#189 <https://github.com/aio-libs/aiopg/issues/189>`_ hstore when using ReadDictCursor `#512 <https://github.com/aio-libs/aiopg/issues/512>`_

* close cannot be used while an asynchronous query is underway (#452)
* close cannot be used while an asynchronous query is underway `#452 <https://github.com/aio-libs/aiopg/issues/452>`_

* sqlalchemy adapter trx begin allow transaction_mode (#498)
* sqlalchemy adapter trx begin allow transaction_mode `#498 <https://github.com/aio-libs/aiopg/issues/498>`_


0.15.0 (2018-08-14)
^^^^^^^^^^^^^^^^^^^

* Support Python 3.7 (#437)
* Support Python 3.7 `#437 <https://github.com/aio-libs/aiopg/issues/437>`_

0.14.0 (2018-05-10)
^^^^^^^^^^^^^^^^^^^

* Add ``get_dialect`` func to have ability to pass ``json_serializer`` #451
* Add ``get_dialect`` func to have ability to pass ``json_serializer`` `#451 <https://github.com/aio-libs/aiopg/issues/451>`_

0.13.2 (2018-01-03)
^^^^^^^^^^^^^^^^^^^

* Fixed compatibility with SQLAlchemy 1.2.0 #412
* Fixed compatibility with SQLAlchemy 1.2.0 `#412 <https://github.com/aio-libs/aiopg/issues/412>`_

* Added support for transaction isolation levels #219
* Added support for transaction isolation levels `#219 <https://github.com/aio-libs/aiopg/issues/219>`_


0.13.1 (2017-09-10)
^^^^^^^^^^^^^^^^^^^

* Added connection poll recycling logic #373
* Added connection poll recycling logic `#373 <https://github.com/aio-libs/aiopg/issues/373>`_


0.13.0 (2016-12-02)
^^^^^^^^^^^^^^^^^^^

* Add `async with` support to `.begin_nested()` #208
* Add `async with` support to `.begin_nested()` `#208 <https://github.com/aio-libs/aiopg/issues/208>`_

* Fix connection.cancel() #212 #223
* Fix connection.cancel() `#212 <https://github.com/aio-libs/aiopg/issues/212>`_ `#223 <https://github.com/aio-libs/aiopg/issues/223>`_

* Raise informative error on unexpected connection closing #191
* Raise informative error on unexpected connection closing `#191 <https://github.com/aio-libs/aiopg/issues/191>`_

* Added support for python types columns issues #217
* Added support for python types columns issues `#217 <https://github.com/aio-libs/aiopg/issues/217>`_

* Added support for default values in SA table issues #206
* Added support for default values in SA table issues `#206 <https://github.com/aio-libs/aiopg/issues/206>`_


0.12.0 (2016-10-09)
^^^^^^^^^^^^^^^^^^^

* Add an on_connect callback parameter to pool #141
* Add an on_connect callback parameter to pool `#141 <https://github.com/aio-libs/aiopg/issues/141>`_

* Fixed connection to work under both windows and posix based systems #142
* Fixed connection to work under both windows and posix based systems `#142 <https://github.com/aio-libs/aiopg/issues/142>`_

0.11.0 (2016-09-12)
^^^^^^^^^^^^^^^^^^^

* Immediately remove callbacks from a closed file descriptor #139
* Immediately remove callbacks from a closed file descriptor `#139 <https://github.com/aio-libs/aiopg/issues/139>`_

* Drop Python 3.3 support

0.10.0 (2016-07-16)
^^^^^^^^^^^^^^^^^^^

* Refactor tests to use dockerized Postgres server #107
* Refactor tests to use dockerized Postgres server `#107 <https://github.com/aio-libs/aiopg/issues/107>`_

* Reduce default pool minsize to 1 #106
* Reduce default pool minsize to 1 `#106 <https://github.com/aio-libs/aiopg/issues/106>`_

* Explicitly enumerate packages in setup.py #85
* Explicitly enumerate packages in setup.py `#85 <https://github.com/aio-libs/aiopg/issues/85>`_

* Remove expired connections from pool on acquire #116
* Remove expired connections from pool on acquire `#116 <https://github.com/aio-libs/aiopg/issues/116>`_

* Don't crash when Connection is GC'ed #124
* Don't crash when Connection is GC'ed `#124 <https://github.com/aio-libs/aiopg/issues/124>`_

* Use loop.create_future() if available

0.9.2 (2016-01-31)
^^^^^^^^^^^^^^^^^^

* Make pool.release return asyncio.Future, so we can wait on it in
`__aexit__` #102
`__aexit__` `#102 <https://github.com/aio-libs/aiopg/issues/102>`_

* Add support for uuid type #103
* Add support for uuid type `#103 <https://github.com/aio-libs/aiopg/issues/103>`_

0.9.1 (2016-01-17)
^^^^^^^^^^^^^^^^^^

* Documentation update #101
* Documentation update `#101 <https://github.com/aio-libs/aiopg/issues/101>`_

0.9.0 (2016-01-14)
^^^^^^^^^^^^^^^^^^

* Add async context managers for transactions #91
* Add async context managers for transactions `#91 <https://github.com/aio-libs/aiopg/issues/91>`_

* Support async iterator in ResultProxy #92
* Support async iterator in ResultProxy `#92 <https://github.com/aio-libs/aiopg/issues/92>`_

* Add async with for engine #90
* Add async with for engine `#90 <https://github.com/aio-libs/aiopg/issues/90>`_

0.8.0 (2015-12-31)
^^^^^^^^^^^^^^^^^^

* Add PostgreSQL notification support #58
* Add PostgreSQL notification support `#58 <https://github.com/aio-libs/aiopg/issues/58>`_

* Support pools with unlimited size #59
* Support pools with unlimited size `#59 <https://github.com/aio-libs/aiopg/issues/59>`_

* Cancel current DB operation on asyncio timeout #66
* Cancel current DB operation on asyncio timeout `#66 <https://github.com/aio-libs/aiopg/issues/66>`_

* Add async with support for Pool, Connection, Cursor #88
* Add async with support for Pool, Connection, Cursor `#88 <https://github.com/aio-libs/aiopg/issues/88>`_

0.7.0 (2015-04-22)
^^^^^^^^^^^^^^^^^^
Expand Down
62 changes: 40 additions & 22 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,33 @@ Instruction for contributors
Developer environment
---------------------

First clone the git repo::
First clone the git repo:

$ git clone git@github.com:aio-libs/aiopg.git
$ cd aiopg
.. code-block:: shell
$ git clone git@github.com:aio-libs/aiopg.git
$ cd aiopg
After that you need to create and activate a virtual environment. I
recommend using :term:`virtualenvwrapper` but just :term:`virtualenv` or
:term:`venv` will also work. For ``virtualenvwrapper``::
:term:`venv` will also work. For :term:`virtualenvwrapper`:

.. code-block:: shell
$ mkvirtualenv aiopg -p `which python3`
$ mkvirtualenv aiopg -p `which python3`
For `venv` (for example; put the directory wherever you want):

For ``venv`` (for example; put the directory wherever you want)::
.. code-block:: shell
$ python3 -m venv ../venv_directory
$ source ../venv_directory/bin/activate
$ python3 -m venv ../venv_directory
$ source ../venv_directory/bin/activate
Just as when doing a normal install, you need the :term:`libpq` library::
Just as when doing a normal install, you need the :term:`libpq` library:

$ sudo apt-get install libpq-dev
.. code-block:: shell
$ sudo apt-get install libpq-dev
**UPD**

Expand All @@ -35,37 +43,47 @@ No local Postgres server needed.

In the virtual environment you need to install *aiopg* itself and some
additional development tools (the development tools are needed for running
the test suite and other development tasks)::
the test suite and other development tasks)

.. code-block:: shell
$ pip install -Ue .
$ pip install -Ur requirements.txt
$ pip install -Ue .
$ pip install -Ur requirements.txt
That's all.

To run all of the *aiopg* tests do::
To run all of the *aiopg* tests do:

$ make test
.. code-block:: shell
$ make test
This command runs :term:`pep8` and :term:`pyflakes` first and then executes
the *aiopg* unit tests.


When you are working on solving an issue you will probably want to run
some specific test, not the whole suite::
some specific test, not the whole suite:

.. code-block:: shell
$ py.test -s -k test_initial_empty
$ py.test -s -k test_initial_empty
For debug sessions I prefer to use :term:`ipdb`, which is installed
as part of the development tools. Insert the following line into your
as part of the development tools. Insert the following line into your
code in the place where you want to start interactively debugging the
execution process::
execution process:

import ipdb; ipdb.set_trace()
.. code-block:: py3
import ipdb; ipdb.set_trace()
The library is reasonably well covered by tests. There is a make
target for generating the coverage report::
target for generating the coverage report:

.. code-block:: shell
$ make cov
$ make cov
Contribution
Expand Down
12 changes: 12 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* Alexander <chersanya@gmail.com>
* Eugene Krevenets <hyzhak@ya.ru>
* Fantix King
* Lena Kryvonos
* Low Kian Seong <kianseong@gmail.com>
* Marco Paolini
* Michal Kuffa
* Nikolay Novik <is.infinity@yahoo.com>
* Petr Viktorin <encukou@gmail.com>
* R\. David Murray <rdmurray@bitdance.com>
* Ryan Hodge
* Theron Luhn <theron@luhn.com>
11 changes: 3 additions & 8 deletions MAINTAINERS.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
Maintainers
-----------

The list of *aiopg* maintainers.

Andrew Svetlov <andrew.svetlov@gmail.com>
Alexey Popravka <alexey.popravka@horsedevel.com>
Alexey Firsov <virmir49@gmail.com>
* Andrew Svetlov <andrew.svetlov@gmail.com>
* Alexey Firsov <virmir49@gmail.com>
* Alexey Popravka <alexey.popravka@horsedevel.com>
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include LICENSE.txt
include CHANGES.txt
include README.rst
include MAINTAINERS.txt
graft aiopg
global-exclude *.pyc
exclude tests/**
Loading

0 comments on commit ea9c039

Please sign in to comment.